wok annotate python-passlib/receipt @ rev 25063
nfs-utils: update web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 07 20:10:22 2022 +0000 (2022-06-07) |
parents | 92f6d61e264b |
children | 73452f569a6d |
rev | line source |
---|---|
pascal@17233 | 1 # SliTaz package receipt. |
pascal@17233 | 2 |
pascal@17233 | 3 PACKAGE="python-passlib" |
pascal@17233 | 4 SOURCE="passlib" |
Hans-G?nter@23522 | 5 VERSION="1.7.2" |
pascal@17233 | 6 CATEGORY="misc" |
Hans-G?nter@23522 | 7 SHORT_DESC="Comprehensive password hashing framework supporting over 30 schemes." |
pascal@17233 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@17233 | 9 LICENSE="BSD" |
Hans-G?nter@23522 | 10 WEB_SITE="https://pypi.python.org/pypi/$SOURCE" |
Hans-G?nter@23522 | 11 |
pascal@17233 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23522 | 13 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL" |
pascal@17233 | 14 |
pascal@17233 | 15 DEPENDS="python" |
Hans-G?nter@23522 | 16 BUILD_DEPENDS="python python-setuptools" |
pascal@17233 | 17 |
pascal@24391 | 18 # What is the latest version available today? |
pascal@24391 | 19 current_version() |
pascal@24391 | 20 { |
pascal@24391 | 21 wget -O - https://pypi.org/project/$SOURCE/ 2>/dev/null | \ |
pascal@24391 | 22 sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||;q" |
pascal@24391 | 23 } |
pascal@24391 | 24 |
pascal@17233 | 25 # Rules to configure and make the package. |
pascal@17233 | 26 compile_rules() |
pascal@17233 | 27 { |
pascal@17233 | 28 python setup.py build && |
pascal@17233 | 29 python setup.py install --root=$DESTDIR |
pascal@17233 | 30 } |
pascal@17233 | 31 |
pascal@17233 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17233 | 33 genpkg_rules() |
pascal@17233 | 34 { |
Hans-G?nter@23522 | 35 cp -a $install/usr $fs |
pascal@17233 | 36 } |