wok annotate python-pyweb/receipt @ rev 24535
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 23 11:49:52 2022 +0000 (2022-02-23) |
parents | dab616728814 |
children | 7c6901d3cd44 |
rev | line source |
---|---|
pascal@14184 | 1 # SliTaz package receipt. |
pascal@14184 | 2 |
pascal@14184 | 3 PACKAGE="python-pyweb" |
pascal@14184 | 4 SOURCE="web.py" |
pascal@14184 | 5 VERSION="0.37" |
pascal@14184 | 6 CATEGORY="development" |
pascal@14184 | 7 SHORT_DESC="A web framework for Python." |
pascal@14184 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15378 | 9 LICENSE="PublicDomain" |
pascal@14184 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@22676 | 11 WEB_SITE="https://webpy.org/" |
pascal@14184 | 12 WGET_URL="${WEB_SITE}static/$TARBALL" |
pascal@15611 | 13 |
pascal@14184 | 14 DEPENDS="python" |
pascal@15611 | 15 BUILD_DEPENDS="python" |
pascal@14184 | 16 |
pascal@24459 | 17 # What is the latest version available today? |
pascal@24459 | 18 current_version() |
pascal@24459 | 19 { |
pascal@24459 | 20 wget -O - https://github.com/webpy/webpy/releases 2>/dev/null | \ |
pascal@24459 | 21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24459 | 22 } |
pascal@24459 | 23 |
pascal@14184 | 24 # Rules to configure and make the package. |
pascal@14184 | 25 compile_rules() |
pascal@14184 | 26 { |
pascal@14184 | 27 python setup.py build |
pascal@14184 | 28 python setup.py install --root=$DESTDIR |
pascal@14184 | 29 } |
pascal@14184 | 30 |
pascal@14184 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@14184 | 32 genpkg_rules() |
pascal@14184 | 33 { |
pascal@14184 | 34 mkdir -p $fs/usr |
pascal@14184 | 35 cp -a $install/usr/lib $fs/usr |
pascal@14184 | 36 } |