wok-current annotate python-random2/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 |
---|---|
Hans-G?nter@23846 | 1 # SliTaz package receipt. |
Hans-G?nter@23846 | 2 |
Hans-G?nter@23846 | 3 PACKAGE="python-random2" |
Hans-G?nter@23846 | 4 VERSION="1.0.1" |
Hans-G?nter@23846 | 5 CATEGORY="development" |
Hans-G?nter@23846 | 6 SHORT_DESC="Python 3 compatible port of Python 2 random module." |
Hans-G?nter@23846 | 7 MAINTAINER="maintainer@slitaz.org" |
Hans-G?nter@23846 | 8 LICENSE="Python" |
Hans-G?nter@23846 | 9 WEB_SITE="https://pypi.org/project/random2/" |
Hans-G?nter@23846 | 10 |
Hans-G?nter@23846 | 11 SOURCE="random2" |
Hans-G?nter@23846 | 12 TARBALL="$SOURCE-$VERSION.zip" |
Hans-G?nter@23846 | 13 WGET_URL="https://files.pythonhosted.org/packages/source/r/$SOURCE/$TARBALL" |
Hans-G?nter@23846 | 14 |
Hans-G?nter@23846 | 15 DEPENDS="python" |
Hans-G?nter@23846 | 16 BUILD_DEPENDS="python-dev python-setuptools" |
Hans-G?nter@23846 | 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. |
Hans-G?nter@23846 | 25 compile_rules() |
Hans-G?nter@23846 | 26 { |
Hans-G?nter@23846 | 27 python setup.py install --root=$DESTDIR |
Hans-G?nter@23846 | 28 } |
Hans-G?nter@23846 | 29 |
Hans-G?nter@23846 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
Hans-G?nter@23846 | 31 genpkg_rules() |
Hans-G?nter@23846 | 32 { |
Hans-G?nter@23846 | 33 cp -a $install/usr $fs |
Hans-G?nter@23846 | 34 } |