wok annotate python-random2/receipt @ rev 24288
fail2ban: add log4j-jndi.conf
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jan 13 18:29:05 2022 +0000 (2022-01-13) |
parents | b8aff98e30bb |
children | 076f424196b2 |
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@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@24288 | 23 # Rules to configure and make the package. |
Hans-G?nter@23846 | 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 } |