wok-current diff tuxmath/receipt @ rev 24497
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 19 14:19:02 2022 +0000 (2022-02-19) |
parents | 612b5be4bfc5 |
children | 1805f71c5d9f |
line diff
1.1 --- a/tuxmath/receipt Mon Mar 30 14:17:01 2020 +0100 1.2 +++ b/tuxmath/receipt Sat Feb 19 14:19:02 2022 +0000 1.3 @@ -19,6 +19,14 @@ 1.4 libsdl-mixer-dev libsdl-net-dev libsdl-pango-dev 1.5 libsdl-ttf-dev libt4k_common-dev" 1.6 1.7 +# What is the latest version available today? 1.8 +current_version() 1.9 +{ 1.10 + wget -O - $WEB_SITE$(wget -O - $WEB_SITE 2>/dev/null | \ 1.11 + sed '/TuxMath-Source/!d;/Index/d;s|.*href="||;s|/.*||' | sort -Vr | sed q) 2>/dev/null | \ 1.12 + sed "/latest/d;/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q 1.13 +} 1.14 + 1.15 # Rules to configure and make the package. 1.16 compile_rules() 1.17 {