wok diff libgtkhtml/receipt @ rev 24111

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 28 17:26:43 2021 +0000 (2021-09-28)
parents d3eb5f4b53ea
children
line diff
     1.1 --- a/libgtkhtml/receipt	Thu Mar 26 09:34:19 2015 +0100
     1.2 +++ b/libgtkhtml/receipt	Tue Sep 28 17:26:43 2021 +0000
     1.3 @@ -8,7 +8,7 @@
     1.4  LICENSE="LGPL2"
     1.5  TARBALL="$PACKAGE-$VERSION.tar.bz2"
     1.6  WEB_SITE="http://freshmeat.net/projects/libgtkhtml/"
     1.7 -WGET_URL="ftp://ftp.gnome.org/pub/GNOME/sources/$PACKAGE/${VERSION%.*}/$TARBALL"
     1.8 +WGET_URL="https://download.gnome.org/sources/$PACKAGE/${VERSION%.*}/$TARBALL"
     1.9  
    1.10  DEPENDS="glibc-base glib libgio expat libxml2 zlib \
    1.11  gtk+ cairo atk fontconfig freetype pango pixman libpng \
    1.12 @@ -16,6 +16,12 @@
    1.13  xorg-libXdamage xorg-libXdmcp xorg-libXext xorg-libXfixes xorg-libXinerama xorg-libXrender"
    1.14  BUILD_DEPENDS="pkg-config libxml2-dev gtk+-dev xorg-libXdamage-dev expat-dev"
    1.15  
    1.16 +current_version()
    1.17 +{
    1.18 +	wget -O - $(dirname $WGET_URL) 2>/dev/null | \
    1.19 +	sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
    1.20 +}
    1.21 +
    1.22  # Rules to configure and make the package.
    1.23  compile_rules()
    1.24  {