wok diff gxine/receipt @ rev 24082

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 09 18:20:09 2021 +0000 (2021-07-09)
parents 17e313b5b9c1
children 00e3b45c063b
line diff
     1.1 --- a/gxine/receipt	Tue Feb 17 09:42:47 2015 +0100
     1.2 +++ b/gxine/receipt	Fri Jul 09 18:20:09 2021 +0000
     1.3 @@ -15,8 +15,14 @@
     1.4  gtk+-dev xorg-libXinerama-dev xorg-libXext-dev xorg-xextproto perl \
     1.5  xorg-libXv-dev xorg-videoproto xorg-xf86vidmodeproto"
     1.6  
     1.7 +current_version()
     1.8 +{
     1.9 +	wget -O - https://sourceforge.net/projects/xine/files/$PACKAGE 2>/dev/null | \
    1.10 +	sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    1.11 +	sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
    1.12 +}
    1.13 +
    1.14  # Rules to configure and make the package.
    1.15 -
    1.16  compile_rules()
    1.17  {
    1.18  	cd $src