wok-next diff python-qrcode/receipt @ rev 21469

updated tinc (1.0.25 -> 1.0.36)
author Hans-G?nter Theisgen
date Wed May 13 07:41:00 2020 +0100 (2020-05-13)
parents 8b5b2a6d07b8
children
line diff
     1.1 --- a/python-qrcode/receipt	Fri Sep 14 01:56:52 2018 +0300
     1.2 +++ b/python-qrcode/receipt	Wed May 13 07:41:00 2020 +0100
     1.3 @@ -1,30 +1,25 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7 +ORIGIN="qrcode"
     1.8  PACKAGE="python-qrcode"
     1.9 -VERSION="4.0.4"
    1.10 -CATEGORY="development"
    1.11 -SHORT_DESC="Python QR Code image generator."
    1.12 +VERSION="6.0"
    1.13 +CATEGORY="python"
    1.14 +SHORT_DESC="QR Code image generator"
    1.15  MAINTAINER="pascal.bellard@slitaz.org"
    1.16 -LICENSE="PSL"
    1.17 -WEB_SITE="https://pypi.org/project/qrcode/"
    1.18 +LICENSE="BSD"
    1.19 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
    1.20 +HOST_ARCH="any"
    1.21  REPOLOGY="python:qrcode"
    1.22  
    1.23 -SOURCE="qrcode"
    1.24 -TARBALL="$SOURCE-$VERSION.tar.gz"
    1.25 -WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
    1.26 +BUILD_DEPENDS="python-dev python-six  python3-dev python3-six"
    1.27 +SPLIT="${PACKAGE/python/python3}:3"
    1.28  
    1.29 -DEPENDS="python python-pil python-six"
    1.30 -BUILD_DEPENDS="python-dev python"
    1.31 -
    1.32 -# Rules to configure and make the package.
    1.33 -compile_rules()
    1.34 -{
    1.35 -	python setup.py build &&
    1.36 -	python setup.py install --root=$DESTDIR
    1.37 +compile_rules() {
    1.38 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
    1.39  }
    1.40  
    1.41 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.42 -genpkg_rules()
    1.43 -{
    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 $py-six"
    1.49  }