wok annotate python-futures/receipt @ rev 24353
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 03 12:55:23 2022 +0000 (2022-02-03) |
parents | fc917bce0480 |
children | 076f424196b2 |
rev | line source |
---|---|
pascal@20448 | 1 # SliTaz package receipt. |
pascal@20448 | 2 |
pascal@20448 | 3 PACKAGE="python-futures" |
Hans-G?nter@23486 | 4 VERSION="3.3.0" |
pascal@20448 | 5 CATEGORY="development" |
Hans-G?nter@23486 | 6 SHORT_DESC="A backport of the concurrent.futures package from Python 3." |
pascal@20448 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@20448 | 8 LICENSE="MIT" |
Hans-G?nter@23486 | 9 WEB_SITE="https://pypi.org/project/$SOURCE/" |
Hans-G?nter@23486 | 10 |
Hans-G?nter@23486 | 11 SOURCE="futures" |
pascal@20448 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23486 | 13 WGET_URL="https://files.pythonhosted.org/packages/source/f/$SOURCE/$TARBALL" |
pascal@20448 | 14 |
pascal@20448 | 15 DEPENDS="python" |
pascal@21582 | 16 BUILD_DEPENDS="python python-setuptools" |
pascal@20448 | 17 |
pascal@24288 | 18 current_version() |
pascal@24288 | 19 { |
pascal@24288 | 20 wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' |
pascal@24288 | 21 } |
pascal@24288 | 22 |
pascal@20448 | 23 # Rules to configure and make the package. |
pascal@20448 | 24 compile_rules() |
pascal@20448 | 25 { |
pascal@20448 | 26 python setup.py install --root=$DESTDIR |
pascal@20448 | 27 } |
pascal@20448 | 28 |
pascal@20448 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20448 | 30 genpkg_rules() |
pascal@20448 | 31 { |
Hans-G?nter@23486 | 32 cp -a $install/usr $fs |
pascal@20448 | 33 } |