wok-current annotate python-cparser/receipt @ rev 24742
updated libffcall (2.2 -> 2.4)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 16 10:31:26 2022 +0100 (2022-03-16) |
parents | 5ea0ce1cecc0 |
children |
rev | line source |
---|---|
pascal@21810 | 1 # SliTaz package receipt. |
pascal@21810 | 2 |
pascal@21810 | 3 PACKAGE="python-cparser" |
pascal@21810 | 4 VERSION="2.19" |
pascal@21810 | 5 CATEGORY="development" |
pascal@21810 | 6 SHORT_DESC="Complete C99 parser in pure Python" |
pascal@21810 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@21810 | 8 LICENSE="BSD" |
pascal@21810 | 9 WEB_SITE="https://github.com/eliben/pycparser/" |
pascal@21810 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@21810 | 11 WGET_URL="https://github.com/eliben/pycparser/archive/release_v$VERSION.tar.gz" |
pascal@21810 | 12 |
pascal@21810 | 13 DEPENDS="python" |
pascal@21810 | 14 BUILD_DEPENDS="python" |
pascal@21810 | 15 |
pascal@24055 | 16 current_version() |
pascal@24055 | 17 { |
pascal@24299 | 18 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ |
pascal@24055 | 19 sed '/archive.*tar/!d;s|.*/release_v\(.*\).tar.*|\1|;q' |
pascal@24055 | 20 } |
pascal@24055 | 21 |
pascal@21810 | 22 # Rules to configure and make the package. |
pascal@21810 | 23 compile_rules() |
pascal@21810 | 24 { |
pascal@21810 | 25 python setup.py install --prefix=/usr --root=$DESTDIR |
pascal@21810 | 26 } |
pascal@21810 | 27 |
pascal@21810 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@21810 | 29 genpkg_rules() |
pascal@21810 | 30 { |
pascal@21810 | 31 cp -a $install/usr $fs/ |
pascal@21810 | 32 } |