wok-current annotate python-decoratortools/receipt @ rev 25445
itaka: fix wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 06 07:38:52 2022 +0000 (2022-09-06) |
parents | 104a2a2e5484 |
children |
rev | line source |
---|---|
pankso@3377 | 1 # SliTaz package receipt. |
pankso@3377 | 2 |
pankso@3377 | 3 PACKAGE="python-decoratortools" |
taziden@6464 | 4 VERSION="1.8" |
pankso@3377 | 5 CATEGORY="development" |
taziden@3777 | 6 SHORT_DESC="Class, function, and metaclass decorators" |
taziden@3777 | 7 MAINTAINER="taziden@slitaz.org" |
pascal@15378 | 8 LICENSE="PSL" |
pankso@3377 | 9 SOURCE="DecoratorTools" |
taziden@3777 | 10 TARBALL="$SOURCE-$VERSION.zip" |
pascal@24975 | 11 WEB_SITE="https://pypi.python.org/pypi/DecoratorTools" |
pascal@24975 | 12 WGET_URL="https://pypi.python.org/packages/source/D/$SOURCE/$TARBALL" |
pankso@3377 | 13 TAGS="python" |
pankso@3377 | 14 |
pascal@15378 | 15 DEPENDS="python" |
pascal@21581 | 16 BUILD_DEPENDS="python python-dev python-setuptools" |
pascal@15378 | 17 |
pascal@24391 | 18 # What is the latest version available today? |
pascal@24391 | 19 current_version() |
pascal@24391 | 20 { |
pascal@24391 | 21 wget -O - https://pypi.org/project/$SOURCE/ 2>/dev/null | \ |
pascal@24391 | 22 sed "/$SOURCE-/!d;/zip/!d;s|.*$SOURCE-||;s|.zip.*||;q" |
pascal@24391 | 23 } |
pascal@24391 | 24 |
pankso@3377 | 25 # Rules to configure and make the package. |
pankso@3377 | 26 compile_rules() |
pankso@3377 | 27 { |
al@18077 | 28 python setup.py install --root=$DESTDIR |
pankso@3377 | 29 } |
pankso@3377 | 30 |
pankso@3377 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@3377 | 32 genpkg_rules() |
pankso@3377 | 33 { |
pascal@15378 | 34 cp -a $install/usr $fs |
pankso@3377 | 35 } |