wok-next diff python-pynacl/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents 92f1f4b98170
children
line diff
     1.1 --- a/python-pynacl/receipt	Wed Aug 22 16:45:51 2018 +0300
     1.2 +++ b/python-pynacl/receipt	Sat Nov 21 14:32:44 2020 +0100
     1.3 @@ -1,22 +1,26 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6 +ORIGIN="PyNaCl"
     1.7  PACKAGE="python-pynacl"
     1.8 -VERSION="latest"
     1.9 +VERSION="1.2.1"
    1.10  CATEGORY="python"
    1.11  SHORT_DESC="Python binding to the Networking and Cryptography library (NaCl)"
    1.12  MAINTAINER="al.bobylev@gmail.com"
    1.13  LICENSE="Apache2"
    1.14 -WEB_SITE="https://pypi.org/project/PyNaCl/"
    1.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
    1.16 +#HOST_ARCH
    1.17  REPOLOGY="python:pynacl"
    1.18  
    1.19 -BUILD_DEPENDS="python python-cffi python-six"
    1.20 +BUILD_DEPENDS="python python-cffi python-six \
    1.21 +python3 python3-cffi python3-six"
    1.22 +SPLIT="${PACKAGE/python/python3}:3"
    1.23  
    1.24  compile_rules() {
    1.25 -	pip install --no-compile --root=$DESTDIR PyNaCl
    1.26 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
    1.27  }
    1.28  
    1.29  genpkg_rules() {
    1.30 -	VERSION=$(sed -n '/^Successfully installed/ s|.*PyNaCl-||p' $LOGS/$PACKAGE.log)
    1.31  	copy @std
    1.32 -	DEPENDS="python python-cffi python-six"
    1.33 +	py="${PACKAGE%%-*}" # python/python3
    1.34 +	DEPENDS="$py $py-cffi $py-six"
    1.35  }