wok diff defragfs/receipt @ rev 24713
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 14 18:23:09 2022 +0000 (2022-03-14) |
parents | 8809751bb68d |
children | 00e3b45c063b |
line diff
1.1 --- a/defragfs/receipt Thu Jun 18 16:35:21 2015 +0200 1.2 +++ b/defragfs/receipt Mon Mar 14 18:23:09 2022 +0000 1.3 @@ -12,6 +12,14 @@ 1.4 1.5 DEPENDS="perl" 1.6 1.7 +# What is the latest version available today? 1.8 +current_version() 1.9 +{ 1.10 + wget -O - https://sourceforge.net/projects/defragfs/files/defragfs/ 2>/dev/null | \ 1.11 + sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ 1.12 + sed '/scope="row/!d;s|.*/defragfs-.*/defragfs-||;s|.gz.*||;q' 1.13 +} 1.14 + 1.15 # Rules to gen a SliTaz package suitable for Tazpkg. 1.16 genpkg_rules() 1.17 {