wok-current rev 24351
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 03 10:14:47 2022 +0000 (2022-02-03) |
parents | 5c73e095788a |
children | 419071fa3986 |
files | babl/receipt gegl/receipt gimp/receipt |
line diff
1.1 --- a/babl/receipt Thu Feb 03 09:19:33 2022 +0100 1.2 +++ b/babl/receipt Thu Feb 03 10:14:47 2022 +0000 1.3 @@ -16,6 +16,15 @@ 1.4 1.5 HOST_ARCH="i486 arm" 1.6 1.7 +# What is the latest version available today? 1.8 +current_version() 1.9 +{ 1.10 + wget -O - https://download.gimp.org/pub/$PACKAGE/$( \ 1.11 + wget -O - https://download.gimp.org/pub/$PACKAGE/ 2>/dev/null | \ 1.12 + sed "/latest/d;/\[DIR/!d;s|.*href=.\\(.*\\)/.*\".*|\\1|" | sort -Vr | sed q) 2>/dev/null | \ 1.13 + sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q 1.14 +} 1.15 + 1.16 # Rules to configure and make the package. 1.17 compile_rules() 1.18 {
2.1 --- a/gegl/receipt Thu Feb 03 09:19:33 2022 +0100 2.2 +++ b/gegl/receipt Thu Feb 03 10:14:47 2022 +0000 2.3 @@ -15,6 +15,16 @@ 2.4 BUILD_DEPENDS="babl-dev expat-dev gtk+-dev jasper-dev json-glib-dev \ 2.5 util-linux-mount-dev" 2.6 2.7 +# What is the latest version available today? 2.8 +current_version() 2.9 +{ 2.10 + wget -O - https://download.gimp.org/pub/$PACKAGE/$( \ 2.11 + wget -O - https://download.gimp.org/pub/$PACKAGE/ 2>/dev/null | \ 2.12 + sed "/latest/d;/\[DIR/!d;s|.*href=.\\(.*\\)/.*\".*|\\1|" | sort -Vr | sed q) 2>/dev/null | \ 2.13 + sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q 2.14 +} 2.15 + 2.16 +# Rules to configure and make the package. 2.17 # Rules to configure and make the package. 2.18 compile_rules() 2.19 {
3.1 --- a/gimp/receipt Thu Feb 03 09:19:33 2022 +0100 3.2 +++ b/gimp/receipt Thu Feb 03 10:14:47 2022 +0000 3.3 @@ -18,6 +18,16 @@ 3.4 gdk-pixbuf-dev gtk+-dev libexif-dev aalib-dev libmng-dev jasper-dev \ 3.5 json-glib-dev" 3.6 3.7 +# What is the latest version available today? 3.8 +current_version() 3.9 +{ 3.10 + wget -O - https://download.gimp.org/pub/$PACKAGE/$( \ 3.11 + wget -O - https://download.gimp.org/pub/$PACKAGE/ 2>/dev/null | \ 3.12 + sed "/latest/d;/\[DIR/!d;/v[0-9]/!d;s|.*href=.\\(.*\\)/.*\".*|\\1|" | sort -Vr | sed q) 2>/dev/null | \ 3.13 + sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q 3.14 +} 3.15 + 3.16 +# Rules to configure and make the package. 3.17 # Rules to configure and make the package. 3.18 compile_rules() 3.19 {