wok diff librsvg/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 d98ac734626d
children b77195a00671
line diff
     1.1 --- a/librsvg/receipt	Mon May 04 07:56:50 2020 +0100
     1.2 +++ b/librsvg/receipt	Tue Sep 28 17:26:43 2021 +0000
     1.3 @@ -8,7 +8,7 @@
     1.4  LICENSE="GPL2"
     1.5  TARBALL="$PACKAGE-$VERSION.tar.xz"
     1.6  WEB_SITE="https://wiki.gnome.org/LibRsvg"
     1.7 -WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL"
     1.8 +WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION.*}/$TARBALL"
     1.9  HOST_ARCH="i486 arm"
    1.10  
    1.11  DEPENDS="bzlib cairo fontconfig freetype gdk-pixbuf glib glibc-base harfbuzz \
    1.12 @@ -23,6 +23,12 @@
    1.13  	gobject-introspection-dev gtk+3-dev" ;;
    1.14  esac
    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  {