wok-current annotate python-pynacl/receipt @ rev 24055

Add current_version for most github hosted softwares
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 08 08:46:05 2021 +0000 (2021-06-08)
parents c3a226b49377
children ac8ca9758df1
rev   line source
pascal@21877 1 # SliTaz package receipt.
pascal@21877 2
pascal@21877 3 PACKAGE="python-pynacl"
pascal@21877 4 SOURCE="pynacl"
pascal@21877 5 VERSION="1.3.0"
pascal@21877 6 CATEGORY="development"
pascal@21877 7 SHORT_DESC="Python binding to the Networking and Cryptography (NaCl) library"
pascal@21877 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@21877 9 LICENSE="Apache"
pascal@21877 10 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@21877 11 WEB_SITE="https://github.com/pyca/pynacl/"
pascal@21877 12 WGET_URL="https://github.com/pyca/pynacl/archive/$VERSION.tar.gz"
pascal@21877 13
pascal@21878 14 DEPENDS="python libsodium"
pascal@21877 15 BUILD_DEPENDS="python-setuptools python-dev libmagic libsodium-dev"
pascal@21877 16
pascal@24055 17 current_version()
pascal@24055 18 {
pascal@24055 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
pascal@24055 21 }
pascal@24055 22
pascal@21877 23 # Rules to configure and make the package.
pascal@21877 24 compile_rules()
pascal@21877 25 {
pascal@21877 26 python setup.py build &&
pascal@21877 27 python setup.py install --root=$DESTDIR
pascal@21877 28 }
pascal@21877 29
pascal@21877 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@21877 31 genpkg_rules()
pascal@21877 32 {
pascal@21877 33 mkdir -p $fs
pascal@21877 34 cp -a $install/usr $fs
pascal@21877 35 }