wok-current diff xorg-libxshmfence/receipt @ rev 24353
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 03 12:55:23 2022 +0000 (2022-02-03) |
parents | 469f8561ac86 |
children | ac34e9209f8e |
line diff
1.1 --- a/xorg-libxshmfence/receipt Tue Apr 13 06:48:06 2021 +0100 1.2 +++ b/xorg-libxshmfence/receipt Thu Feb 03 12:55:23 2022 +0000 1.3 @@ -12,6 +12,12 @@ 1.4 TARBALL="$SOURCE-$VERSION.tar.bz2" 1.5 WGET_URL="https://www.x.org/releases/individual/lib/$TARBALL" 1.6 1.7 +current_version() 1.8 +{ 1.9 + wget -O - $(dirname $WGET_URL) 2>/dev/null | \ 1.10 + sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q 1.11 +} 1.12 + 1.13 compile_rules() 1.14 { 1.15 ./configure \