wok-next diff python-mpd/receipt @ rev 21017
Some maintenance
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Oct 16 16:46:05 2018 +0300 (2018-10-16) |
parents | 8b5b2a6d07b8 |
children | d5aab818505e |
line diff
1.1 --- a/python-mpd/receipt Fri Sep 14 01:56:52 2018 +0300 1.2 +++ b/python-mpd/receipt Tue Oct 16 16:46:05 2018 +0300 1.3 @@ -1,29 +1,25 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 +ORIGIN="python-mpd" 1.8 PACKAGE="python-mpd" 1.9 VERSION="0.3.0" 1.10 CATEGORY="multimedia" 1.11 SHORT_DESC="Python MPD client library" 1.12 MAINTAINER="jozee@slitaz.org" 1.13 LICENSE="LGPL3" 1.14 -WEB_SITE="https://pypi.org/project/python-mpd/" 1.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/" 1.16 +HOST_ARCH="any" 1.17 REPOLOGY="python:mpd" 1.18 1.19 -TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.20 -WGET_URL="https://files.pythonhosted.org/packages/source/p/python-mpd/$TARBALL" 1.21 +BUILD_DEPENDS="python python3" 1.22 +SPLIT="${PACKAGE/python/python3}:3" 1.23 1.24 -DEPENDS="python" 1.25 -BUILD_DEPENDS="python-dev" 1.26 - 1.27 -# Rules to configure and make the package. 1.28 -compile_rules() 1.29 -{ 1.30 - python setup.py install --prefix=/usr --root="$DESTDIR" 1.31 +compile_rules() { 1.32 + pip$SET install --no-compile --root=$install $ORIGIN==$VERSION 1.33 } 1.34 1.35 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.36 -genpkg_rules() 1.37 -{ 1.38 - mkdir -p $fs/usr/lib 1.39 - cp -a $install/usr/lib $fs/usr 1.40 +genpkg_rules() { 1.41 + copy @std 1.42 + py=${PACKAGE%%-*} # python/python3 1.43 + DEPENDS="$py" 1.44 }