wok-current diff dconf/receipt @ rev 24353
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 03 12:55:23 2022 +0000 (2022-02-03) |
parents | 282531ce3347 |
children |
line diff
1.1 --- a/dconf/receipt Mon Aug 10 16:52:57 2015 +0300 1.2 +++ b/dconf/receipt Thu Feb 03 12:55:23 2022 +0000 1.3 @@ -16,6 +16,13 @@ 1.4 GENERIC_MENUS="no" 1.5 GENERIC_PIXMAPS="no" 1.6 1.7 +current_version() 1.8 +{ 1.9 + wget -O - $GNOME_MIRROR/$PACKAGE/$(wget -O - $GNOME_MIRROR/$PACKAGE/ 2>/dev/null | \ 1.10 + sed '/href="[0-9]/!d;s|.*href="\(.*\)/".*|\1|' | sort -Vr | sed q) 2>/dev/null | \ 1.11 + sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q 1.12 +} 1.13 + 1.14 # Rules to configure and make the package. 1.15 compile_rules() 1.16 {