wok annotate python-formencode/receipt @ rev 25361
sshrc: typo in wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jul 27 16:25:20 2022 +0000 (2022-07-27) |
parents | e717a4953b0e |
children |
rev | line source |
---|---|
pankso@3378 | 1 # SliTaz package receipt. |
pankso@3378 | 2 |
pankso@3378 | 3 PACKAGE="python-formencode" |
Hans-G?nter@25192 | 4 VERSION="2.0.1" |
pankso@3378 | 5 CATEGORY="development" |
Hans-G?nter@25192 | 6 TAGS="python" |
pankso@3378 | 7 SHORT_DESC="FormEncode is a validation and form generation package." |
pankso@3378 | 8 MAINTAINER="pankso@slitaz.org" |
Hans-G?nter@25192 | 9 LICENSE="MIT" |
Hans-G?nter@25192 | 10 WEB_SITE="https://pypi.org/project/FormEncode/" |
Hans-G?nter@25192 | 11 REPOLOGY="python:formencode" |
Hans-G?nter@25192 | 12 |
pankso@3378 | 13 SOURCE="FormEncode" |
pankso@3378 | 14 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@25192 | 15 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL" |
pascal@15378 | 16 |
pankso@3378 | 17 DEPENDS="python" |
pascal@21582 | 18 BUILD_DEPENDS="python python-dev python-setuptools" |
pankso@3378 | 19 |
pascal@24391 | 20 # What is the latest version available today? |
pascal@24391 | 21 current_version() |
pascal@24391 | 22 { |
pascal@24391 | 23 wget -O - https://pypi.org/project/$SOURCE/ 2>/dev/null | \ |
pascal@24391 | 24 sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||;q" |
pascal@24391 | 25 } |
pascal@24391 | 26 |
pankso@3378 | 27 # Rules to configure and make the package. |
pankso@3378 | 28 compile_rules() |
pankso@3378 | 29 { |
pascal@15378 | 30 python setup.py install --root=$DESTDIR |
pankso@3378 | 31 } |
pankso@3378 | 32 |
pankso@3378 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@3378 | 34 genpkg_rules() |
pankso@3378 | 35 { |
pascal@15378 | 36 cp -a $install/usr $fs |
pankso@3378 | 37 } |