wok annotate python-gammu/receipt @ rev 24069
Add some current_version()
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jul 06 11:01:20 2021 +0000 (2021-07-06) |
parents | 9a628050ec65 |
children | ac8ca9758df1 |
rev | line source |
---|---|
pascal@19913 | 1 # SliTaz package receipt. |
pascal@19913 | 2 |
pascal@19913 | 3 PACKAGE="python-gammu" |
Hans-G?nter@23487 | 4 VERSION="2.12" |
pascal@19913 | 5 CATEGORY="development" |
Hans-G?nter@23487 | 6 SHORT_DESC="Python bindings for Gammu." |
pascal@19913 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@19913 | 8 LICENSE="GPL2" |
Hans-G?nter@23487 | 9 WEB_SITE="https://wammu.eu/python-gammu/" |
Hans-G?nter@23487 | 10 |
pascal@19913 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@19913 | 12 WGET_URL="https://github.com/gammu/$PACKAGE/archive/$VERSION.tar.gz" |
pascal@19913 | 13 |
Hans-G?nter@23487 | 14 DEPENDS="gammu python" |
Hans-G?nter@23489 | 15 BUILD_DEPENDS="gammu-dev pkg-config python python-dev python-setuptools" |
pascal@19913 | 16 |
pascal@24055 | 17 current_version() |
pascal@24055 | 18 { |
pascal@24055 | 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
pascal@19913 | 23 # Rules to configure and make the package. |
pascal@19913 | 24 compile_rules() |
pascal@19913 | 25 { |
pascal@19913 | 26 python setup.py build && |
pascal@19913 | 27 python setup.py install --root=$DESTDIR |
pascal@19913 | 28 } |
pascal@19913 | 29 |
pascal@19913 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@19913 | 31 genpkg_rules() |
pascal@19913 | 32 { |
Hans-G?nter@23487 | 33 cp -a $install/usr $fs |
pascal@19913 | 34 } |