wok diff xfce4-cpugraph-plugin/receipt @ rev 25770
dool,fake-hwclock,gtkam,xfce4-*-plugin,xlogo: add current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 06 11:29:23 2024 +0000 (2 months ago) |
parents | 69d9f8a3fcd6 |
children |
line diff
1.1 --- a/xfce4-cpugraph-plugin/receipt Tue Aug 13 16:09:48 2024 +0100 1.2 +++ b/xfce4-cpugraph-plugin/receipt Fri Sep 06 11:29:23 2024 +0000 1.3 @@ -16,6 +16,15 @@ 1.4 BUILD_DEPENDS="gdk-pixbuf-dev gtk+-dev libxfcegui4-dev pkg-config 1.5 util-linux-mount-dev xfce4-panel-dev" 1.6 1.7 +# What is the latest version available today? 1.8 +current_version() 1.9 +{ 1.10 + wget -O - https://archive.xfce.org/src/panel-plugins/$PACKAGE/$( 1.11 + wget -O - https://archive.xfce.org/src/panel-plugins/$PACKAGE 2>/dev/null | \ 1.12 + sed '/href/!d;s|.*href="||;s|/".*||' | sort -Vr | sed q) 2>/dev/null | \ 1.13 + sed '/href="x/!d;s|.*gin-||;s|.tar.*||' | sort -Vr | sed q 1.14 +} 1.15 + 1.16 # Rules to configure and make the package. 1.17 compile_rules() 1.18 {