wok-6.x view 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
line source
1 # SliTaz package receipt.
3 PACKAGE="python-pynacl"
4 SOURCE="pynacl"
5 VERSION="1.3.0"
6 CATEGORY="development"
7 SHORT_DESC="Python binding to the Networking and Cryptography (NaCl) library"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="Apache"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="https://github.com/pyca/pynacl/"
12 WGET_URL="https://github.com/pyca/pynacl/archive/$VERSION.tar.gz"
14 DEPENDS="python libsodium"
15 BUILD_DEPENDS="python-setuptools python-dev libmagic libsodium-dev"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 python setup.py build &&
27 python setup.py install --root=$DESTDIR
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs
34 cp -a $install/usr $fs
35 }