wok-current diff speakup-utils/receipt @ rev 24462
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 16 21:07:01 2022 +0000 (2022-02-16) |
parents | 3b4e4318134e |
children | bc2b9d9bed6f |
line diff
1.1 --- a/speakup-utils/receipt Tue Dec 03 18:28:51 2013 +0000 1.2 +++ b/speakup-utils/receipt Wed Feb 16 21:07:01 2022 +0000 1.3 @@ -13,6 +13,13 @@ 1.4 1.5 DEPENDS="linux-speakup" 1.6 1.7 +# What is the latest version available today? 1.8 +current_version() 1.9 +{ 1.10 + wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ 1.11 + sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|;s|_.*||" | sort -Vr | sed q 1.12 +} 1.13 + 1.14 # Rules to gen a SliTaz package suitable for Tazpkg. 1.15 genpkg_rules() 1.16 {