wok-current diff babl/receipt @ rev 24614
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 06 21:04:14 2022 +0000 (2022-03-06) |
parents | 1f133ca0ddf5 |
children | aba2c5ca9a66 |
line diff
1.1 --- a/babl/receipt Thu Feb 03 10:14:47 2022 +0000 1.2 +++ b/babl/receipt Sun Mar 06 21:04:14 2022 +0000 1.3 @@ -19,10 +19,11 @@ 1.4 # What is the latest version available today? 1.5 current_version() 1.6 { 1.7 - wget -O - https://download.gimp.org/pub/$PACKAGE/$( \ 1.8 wget -O - https://download.gimp.org/pub/$PACKAGE/ 2>/dev/null | \ 1.9 - sed "/latest/d;/\[DIR/!d;s|.*href=.\\(.*\\)/.*\".*|\\1|" | sort -Vr | sed q) 2>/dev/null | \ 1.10 + sed "/latest/d;/\[DIR/!d;s|.*href=.\\(.*\\)/.*\".*|https://download.gimp.org/pub/$PACKAGE/\\1|" | sort -Vr | sed q > /tmp/url$$ 1.11 + cat /tmp/url$$ | xargs wget -O - 2>/dev/null | \ 1.12 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q 1.13 + rm -f /tmp/url$$ 1.14 } 1.15 1.16 # Rules to configure and make the package.