wok diff airgeddon/receipt @ rev 24391
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 07 18:01:05 2022 +0000 (2022-02-07) |
parents | 9d26ae79ba48 |
children | 343c093ad221 |
line diff
1.1 --- a/airgeddon/receipt Tue Feb 05 17:16:21 2019 +0100 1.2 +++ b/airgeddon/receipt Mon Feb 07 18:01:05 2022 +0000 1.3 @@ -13,6 +13,13 @@ 1.4 1.5 DEPENDS="bash iw aircrack-ng curl crunch mdk3" 1.6 1.7 +# What is the latest version available today? 1.8 +current_version() 1.9 +{ 1.10 + wget -O - $WEB_SITE/releases 2>/dev/null | \ 1.11 + sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q' 1.12 +} 1.13 + 1.14 # Rules to gen a SliTaz package suitable for Tazpkg. 1.15 genpkg_rules() 1.16 {