wok-current annotate python-bcrypt/receipt @ rev 24385
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 07 11:38:23 2022 +0000 (2022-02-07) |
parents | 1df6fa555414 |
children | d402990be9fd |
rev | line source |
---|---|
pascal@21876 | 1 # SliTaz package receipt. |
pascal@21876 | 2 |
pascal@21876 | 3 PACKAGE="python-bcrypt" |
pascal@21876 | 4 VERSION="3.1.7" |
pascal@21876 | 5 CATEGORY="development" |
Hans-G?nter@23492 | 6 SHORT_DESC="Modern password hashing for software and servers." |
pascal@21876 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@21876 | 8 LICENSE="Apache" |
Hans-G?nter@23492 | 9 WEB_SITE="https://pypi.org/project/bcrypt/" |
Hans-G?nter@23492 | 10 |
Hans-G?nter@23492 | 11 SOURCE="bcrypt" |
pascal@21876 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23492 | 13 WGET_URL="https://files.pythonhosted.org/packages/source/b/$SOURCE/$TARBALL" |
pascal@21876 | 14 |
pascal@21877 | 15 DEPENDS="python-cffi" |
Hans-G?nter@23492 | 16 BUILD_DEPENDS="libffi-dev python-cffi python-cparser python-dev python-setuptools" |
pascal@21876 | 17 |
pascal@24383 | 18 # What is the latest version available today? |
pascal@24288 | 19 current_version() |
pascal@24288 | 20 { |
pascal@24383 | 21 wget -O - $WEB_SITE 2>/dev/null | sed "/$SOURCE [0-9]/!d;s|.*$SOURCE ||;s|<.*||" |
pascal@24288 | 22 } |
pascal@24288 | 23 |
pascal@24288 | 24 # Rules to configure and make the package. |
pascal@21876 | 25 compile_rules() |
pascal@21876 | 26 { |
pascal@21876 | 27 python setup.py build && |
pascal@21876 | 28 python setup.py install --root=$DESTDIR |
pascal@21876 | 29 } |
pascal@21876 | 30 |
pascal@21876 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@21876 | 32 genpkg_rules() |
pascal@21876 | 33 { |
pascal@21876 | 34 mkdir -p $fs |
Hans-G?nter@23492 | 35 cp -a $install/usr $fs |
pascal@21876 | 36 } |