wok-current annotate androguard/receipt @ rev 24308
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 17 18:18:17 2022 +0000 (2022-01-17) |
parents | 6762ce6bb52b |
children | e1e1678c5265 |
rev | line source |
---|---|
pascal@13358 | 1 # SliTaz package receipt. |
pascal@13358 | 2 |
pascal@13358 | 3 PACKAGE="androguard" |
Hans-G?nter@22480 | 4 VERSION="3.3.5" |
pascal@13358 | 5 CATEGORY="development" |
pascal@13358 | 6 SHORT_DESC="Reverse engineering tool for Android applications." |
pascal@13358 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
Hans-G?nter@22480 | 8 LICENSE="Apache2" |
pascal@24308 | 9 WEB_SITE="https://github.com/androguard/androguard" |
Hans-G?nter@22480 | 10 |
pascal@13358 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@22480 | 12 WGET_URL="${WEB_SITE}archive/v$VERSION.tar.gz" |
pascal@13358 | 13 |
pascal@13358 | 14 DEPENDS="python" |
pascal@21580 | 15 BUILD_DEPENDS="python-dev python-setuptools" |
pascal@13358 | 16 |
pascal@24308 | 17 # What is the latest version available today? |
pascal@24308 | 18 current_version() |
pascal@24308 | 19 { |
pascal@24308 | 20 wget -O - $WEB_SITE/releases 2>/dev/null | \ |
pascal@24308 | 21 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q' |
pascal@24308 | 22 } |
pascal@24308 | 23 |
pascal@13358 | 24 # Rules to configure and make the package. |
pascal@13358 | 25 compile_rules() |
pascal@13358 | 26 { |
pascal@13358 | 27 python setup.py build && |
pascal@13358 | 28 python setup.py install --root=$DESTDIR |
pascal@13358 | 29 } |
pascal@13358 | 30 |
pascal@13358 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13358 | 32 genpkg_rules() |
pascal@13358 | 33 { |
pascal@13358 | 34 cp -a $install/usr $fs |
pascal@13358 | 35 } |