wok diff gtk-engines/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 | 40fab26c175d |
children | b77195a00671 |
line diff
1.1 --- a/gtk-engines/receipt Mon May 09 21:59:10 2016 +0300 1.2 +++ b/gtk-engines/receipt Tue Sep 28 17:26:43 2021 +0000 1.3 @@ -8,11 +8,17 @@ 1.4 LICENSE="GPL2" 1.5 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.6 WEB_SITE="http://linuxfromscratch.org/blfs/view/svn/x/gtk-engines.html" 1.7 -WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL" 1.8 +WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION.*}/$TARBALL" 1.9 1.10 DEPENDS="gtk+ xorg-libXdamage" 1.11 BUILD_DEPENDS="pkg-config file gtk+-dev" 1.12 1.13 +current_version() 1.14 +{ 1.15 + wget -O - $(dirname $WGET_URL) 2>/dev/null | \ 1.16 + sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q 1.17 +} 1.18 + 1.19 # Rules to configure and make the package. 1.20 compile_rules() 1.21 {