wok annotate python-cherrypy/receipt @ rev 25580
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 20 07:58:44 2023 +0000 (15 months ago) |
parents | cb67b4f8be05 |
children |
rev | line source |
---|---|
pankso@3376 | 1 # SliTaz package receipt. |
pankso@3376 | 2 |
pankso@3376 | 3 PACKAGE="python-cherrypy" |
slaxemulator@6601 | 4 VERSION="3.1.2" # Fix to this version for turbogears. |
pankso@3376 | 5 CATEGORY="development" |
pankso@3376 | 6 SHORT_DESC="CherryPy is a pythonic, object-oriented HTTP framework." |
pankso@3376 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15378 | 8 LICENSE="BSD" |
pankso@3376 | 9 SOURCE="CherryPy" |
pankso@3376 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@24746 | 11 WEB_SITE="https://www.cherrypy.org/" |
pascal@24976 | 12 WGET_URL="https://files.pythonhosted.org/packages/source/C/CherryPy/$TARBALL" |
pascal@15378 | 13 TAGS="python" |
pascal@15378 | 14 |
pankso@3376 | 15 DEPENDS="python" |
pankso@3376 | 16 BUILD_DEPENDS="python python-dev" |
pankso@3376 | 17 |
pascal@24545 | 18 # What is the latest version available today? |
pascal@24545 | 19 current_version() |
pascal@24545 | 20 { |
pascal@24545 | 21 wget -O - https://github.com/cherrypy/cherrypy/tags 2>/dev/null | \ |
pascal@24545 | 22 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24545 | 23 } |
pascal@24545 | 24 |
pankso@3376 | 25 # Rules to configure and make the package. |
pankso@3376 | 26 compile_rules() |
pankso@3376 | 27 { |
pascal@15378 | 28 python setup.py install --root=$DESTDIR |
pankso@3376 | 29 } |
pankso@3376 | 30 |
pankso@3376 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@3376 | 32 genpkg_rules() |
pankso@3376 | 33 { |
pascal@15378 | 34 cp -a $install/usr $fs |
pankso@3376 | 35 } |