wok annotate py3k-cparser/receipt @ rev 25532
Add some current_version()
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 27 10:46:05 2023 +0000 (15 months ago) |
parents | 5f5b715c8ec9 |
children | 0262035dc1e7 |
rev | line source |
---|---|
Hans-G?nter@25482 | 1 # SliTaz package receipt. |
Hans-G?nter@25482 | 2 |
Hans-G?nter@25482 | 3 PACKAGE="py3k-cparser" |
Hans-G?nter@25482 | 4 VERSION="2.21" |
Hans-G?nter@25482 | 5 CATEGORY="development" |
Hans-G?nter@25482 | 6 SHORT_DESC="Complete C99 parser in pure Python." |
Hans-G?nter@25482 | 7 MAINTAINER="maintainer@slitaz.org" |
Hans-G?nter@25482 | 8 LICENSE="BSD" |
Hans-G?nter@25482 | 9 WEB_SITE="https://github.com/eliben/pycparser/" |
Hans-G?nter@25482 | 10 |
Hans-G?nter@25482 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@25482 | 12 WGET_URL="https://github.com/eliben/pycparser/archive/release_v$VERSION.tar.gz" |
Hans-G?nter@25482 | 13 |
Hans-G?nter@25482 | 14 DEPENDS="py3k" |
Hans-G?nter@25482 | 15 BUILD_DEPENDS="py3k" |
Hans-G?nter@25482 | 16 |
pascal@25532 | 17 # What is the latest version available today? |
pascal@25532 | 18 current_version() |
pascal@25532 | 19 { |
pascal@25532 | 20 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ |
pascal@25532 | 21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@25532 | 22 } |
pascal@25532 | 23 |
Hans-G?nter@25482 | 24 # Rules to configure and make the package. |
Hans-G?nter@25482 | 25 compile_rules() |
Hans-G?nter@25482 | 26 { |
Hans-G?nter@25482 | 27 python3 setup.py install --prefix=/usr --root=$DESTDIR |
Hans-G?nter@25482 | 28 } |
Hans-G?nter@25482 | 29 |
Hans-G?nter@25482 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
Hans-G?nter@25482 | 31 genpkg_rules() |
Hans-G?nter@25482 | 32 { |
Hans-G?nter@25482 | 33 cp -a $install/usr $fs/ |
Hans-G?nter@25482 | 34 } |