wok-next diff python-pybluez/receipt @ rev 20972

Improve Python packages: update, also provide Python3 packages where available
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Sep 22 16:05:26 2018 +0300 (2018-09-22)
parents 7506b35e1c6f
children d5aab818505e
line diff
     1.1 --- a/python-pybluez/receipt	Mon Aug 13 00:47:17 2018 +0300
     1.2 +++ b/python-pybluez/receipt	Sat Sep 22 16:05:26 2018 +0300
     1.3 @@ -1,31 +1,25 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7 +ORIGIN="PyBluez"
     1.8  PACKAGE="python-pybluez"
     1.9 -VERSION="0.18"
    1.10 -CATEGORY="development"
    1.11 -SHORT_DESC="Python wrappers around system Bluetooth."
    1.12 +VERSION="0.22"
    1.13 +CATEGORY="python"
    1.14 +SHORT_DESC="Python wrappers around system Bluetooth"
    1.15  MAINTAINER="pankso@slitaz.org"
    1.16  LICENSE="GPL"
    1.17 -WEB_SITE="https://pypi.org/project/PyBluez/"
    1.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
    1.19 +#HOST_ARCH
    1.20  REPOLOGY="python:pybluez"
    1.21  
    1.22 -SOURCE="PyBluez"
    1.23 -TARBALL="$SOURCE-$VERSION.tar.gz"
    1.24 -WGET_URL="http://pybluez.googlecode.com/files/$TARBALL" # FIXME
    1.25 +BUILD_DEPENDS="python-dev python3-dev bluez-dev"
    1.26 +SPLIT="${PACKAGE/python/python3}:3"
    1.27  
    1.28 -DEPENDS="python bluez"
    1.29 -BUILD_DEPENDS="$DEPENDS python-dev bluez-dev"
    1.30 -
    1.31 -# Rules to configure and make the package.
    1.32 -compile_rules()
    1.33 -{
    1.34 -	python setup.py build &&
    1.35 -	python setup.py install --root=$DESTDIR
    1.36 +compile_rules() {
    1.37 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
    1.38  }
    1.39  
    1.40 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.41 -genpkg_rules()
    1.42 -{
    1.43 -	mkdir -p $fs
    1.44 -	cp -a $install/usr $fs
    1.45 +genpkg_rules() {
    1.46 +	copy @std
    1.47 +	py="${PACKAGE%%-*}" # python/python3
    1.48 +	DEPENDS="$py bluez"
    1.49  }