wok view python-cparser/receipt @ rev 24055

Add current_version for most github hosted softwares
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 08 08:46:05 2021 +0000 (2021-06-08)
parents 9b196667495f
children ac8ca9758df1
line source
1 # SliTaz package receipt.
3 PACKAGE="python-cparser"
4 VERSION="2.19"
5 CATEGORY="development"
6 SHORT_DESC="Complete C99 parser in pure Python"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://github.com/eliben/pycparser/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="https://github.com/eliben/pycparser/archive/release_v$VERSION.tar.gz"
13 DEPENDS="python"
14 BUILD_DEPENDS="python"
16 current_version()
17 {
18 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
19 sed '/archive.*tar/!d;s|.*/release_v\(.*\).tar.*|\1|;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 python setup.py install --prefix=/usr --root=$DESTDIR
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 cp -a $install/usr $fs/
32 }