wok-current diff 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 |
line diff
1.1 --- a/androguard/receipt Mon Dec 30 14:10:09 2019 +0100 1.2 +++ b/androguard/receipt Mon Jan 17 18:18:17 2022 +0000 1.3 @@ -6,7 +6,7 @@ 1.4 SHORT_DESC="Reverse engineering tool for Android applications." 1.5 MAINTAINER="pascal.bellard@slitaz.org" 1.6 LICENSE="Apache2" 1.7 -WEB_SITE="https://github.com/androguard/androguard/" 1.8 +WEB_SITE="https://github.com/androguard/androguard" 1.9 1.10 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.11 WGET_URL="${WEB_SITE}archive/v$VERSION.tar.gz" 1.12 @@ -14,6 +14,13 @@ 1.13 DEPENDS="python" 1.14 BUILD_DEPENDS="python-dev python-setuptools" 1.15 1.16 +# What is the latest version available today? 1.17 +current_version() 1.18 +{ 1.19 + wget -O - $WEB_SITE/releases 2>/dev/null | \ 1.20 + sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q' 1.21 +} 1.22 + 1.23 # Rules to configure and make the package. 1.24 compile_rules() 1.25 {