wok diff thunar-volman/receipt @ rev 24505

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 20 12:07:59 2022 +0000 (2022-02-20)
parents cfb29dc98daa
children bd7510903310
line diff
     1.1 --- a/thunar-volman/receipt	Sun Dec 15 09:13:38 2019 +0000
     1.2 +++ b/thunar-volman/receipt	Sun Feb 20 12:07:59 2022 +0000
     1.3 @@ -15,6 +15,15 @@
     1.4   xfconf-dev startup-notification-dev util-linux-uuid-dev libxml2-dev libnotify-dev
     1.5   libxfce4util-dev xcb-util-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/xfce/thunar-volman/$( \
    1.11 +	wget -O - https://archive.xfce.org/src/xfce/thunar-volman/ 2>/dev/null | \
    1.12 +	sed '/href="/!d;/Index of/d;s|.*href="||;s|/.*||' | sort -Vr | sed q) 2>/dev/null | \
    1.13 +	sed "/hunar-/!d;/tar/!d;s|.*volman-||;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  {