wok annotate python-docopt/receipt @ rev 25513
memtest: update sleep()
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 14 15:41:57 2023 +0000 (21 months ago) |
parents | 5d50a02468c7 |
children |
rev | line source |
---|---|
paul@18812 | 1 # SliTaz package receipt. |
paul@18812 | 2 |
paul@18812 | 3 PACKAGE="python-docopt" |
paul@18812 | 4 SOURCE="docopt" |
paul@18812 | 5 VERSION="0.6.2" |
paul@18812 | 6 CATEGORY="development" |
paul@18812 | 7 SHORT_DESC="Pythonic argument parser, that will make you smile." |
paul@18812 | 8 MAINTAINER="paul@slitaz.org" |
paul@18812 | 9 LICENSE="MIT" |
paul@18812 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
paul@18812 | 11 WEB_SITE="http://docopt.org/" |
paul@18812 | 12 WGET_URL="https://pypi.python.org/packages/source/d/$SOURCE/$TARBALL" |
paul@18812 | 13 |
paul@18812 | 14 DEPENDS="python" |
pascal@21581 | 15 BUILD_DEPENDS="wget python-setuptools python-dev" |
paul@18812 | 16 |
pascal@24391 | 17 # What is the latest version available today? |
pascal@24391 | 18 current_version() |
pascal@24391 | 19 { |
pascal@24391 | 20 wget -O - https://pypi.org/project/$SOURCE/ 2>/dev/null | \ |
pascal@24391 | 21 sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||;q" |
pascal@24391 | 22 } |
pascal@24391 | 23 |
paul@18812 | 24 # Rules to configure and make the package. |
paul@18812 | 25 compile_rules() |
paul@18812 | 26 { |
paul@18812 | 27 python setup.py install --root=$DESTDIR |
paul@18812 | 28 } |
paul@18812 | 29 |
paul@18812 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@18812 | 31 genpkg_rules() |
paul@18812 | 32 { |
paul@18812 | 33 cp -a $install/usr $fs |
paul@18812 | 34 } |
paul@18812 | 35 |