wok annotate python-itsdangerous/receipt @ rev 24383
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 06 11:51:57 2022 +0000 (2022-02-06) |
parents | 1df6fa555414 |
children |
rev | line source |
---|---|
pascal@20451 | 1 # SliTaz package receipt. |
pascal@20451 | 2 |
pascal@20451 | 3 PACKAGE="python-itsdangerous" |
Hans-G?nter@23498 | 4 VERSION="1.1.0" |
pascal@20451 | 5 CATEGORY="development" |
Hans-G?nter@23498 | 6 SHORT_DESC="Various helpers to pass trusted data to untrusted environments and back." |
pascal@20451 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@20451 | 8 LICENSE="BSD" |
Hans-G?nter@23498 | 9 WEB_SITE="https://pypi.org/project/itsdangerous/" |
Hans-G?nter@23498 | 10 |
Hans-G?nter@23498 | 11 SOURCE="itsdangerous" |
pascal@20451 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23498 | 13 WGET_URL="https://files.pythonhosted.org/packages/source/i/$SOURCE/$TARBALL" |
pascal@20451 | 14 |
pascal@20451 | 15 DEPENDS="python" |
Hans-G?nter@23498 | 16 BUILD_DEPENDS="python python-setuptools" |
pascal@20451 | 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@20451 | 24 # Rules to configure and make the package. |
pascal@20451 | 25 compile_rules() |
pascal@20451 | 26 { |
pascal@20451 | 27 python setup.py install --prefix=/usr --root=$DESTDIR |
pascal@20451 | 28 } |
pascal@20451 | 29 |
pascal@20451 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20451 | 31 genpkg_rules() |
pascal@20451 | 32 { |
Hans-G?nter@23498 | 33 cp -a $install/usr $fs |
pascal@20451 | 34 } |