wok diff thunar/receipt @ rev 24415

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 10 18:04:02 2022 +0000 (2022-02-10)
parents 3e31a3bcc764
children 87f1b8852b4c
line diff
     1.1 --- a/thunar/receipt	Sun Dec 15 18:15:53 2019 +0100
     1.2 +++ b/thunar/receipt	Thu Feb 10 18:04:02 2022 +0000
     1.3 @@ -6,7 +6,7 @@
     1.4  SHORT_DESC="Thunar File Manager"
     1.5  MAINTAINER="erjo@slitaz.org"
     1.6  LICENSE="GPL2"
     1.7 -SOURCE="Thunar"
     1.8 +SOURCE="thunar"
     1.9  TARBALL="$SOURCE-$VERSION.tar.bz2"
    1.10  WEB_SITE="https://www.xfce.org"
    1.11  WGET_URL="http://archive.xfce.org/src/xfce/$PACKAGE/${VERSION%.*}/$TARBALL"
    1.12 @@ -18,6 +18,14 @@
    1.13  libexo-dev zlib-dev intltool libgudev-dev libxfce4ui-dev libxfce4util-dev xcb-util-dev \
    1.14  startup-notification-dev util-linux-uuid-dev libnotify-dev libxfconf-dev"
    1.15  
    1.16 +# What is the latest version available today?
    1.17 +current_version()
    1.18 +{
    1.19 +	wget -O - ${WGET_URL%/*/*}/$(wget -O - ${WGET_URL%/*/*} 2>/dev/null | \
    1.20 +	sed '/href="/!d;/Index of/d;s|.*href="||;s|/.*||' | sort -Vr | sed q) 2>/dev/null | \
    1.21 +	sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||" | sort -Vr | sed q
    1.22 +}
    1.23 +
    1.24  # Rules to configure and make the package.
    1.25  compile_rules()
    1.26  {