wok diff linphone/receipt @ rev 24083

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jul 10 11:40:16 2021 +0000 (2021-07-10)
parents d0c61e885e3a
children cb67b4f8be05
line diff
     1.1 --- a/linphone/receipt	Wed Mar 04 14:40:01 2020 +0100
     1.2 +++ b/linphone/receipt	Sat Jul 10 11:40:16 2021 +0000
     1.3 @@ -16,6 +16,14 @@
     1.4  BUILD_DEPENDS="cmake exosip-dev ffmpeg-dev glib-dev gtk+-dev intltool 
     1.5  	libglade-dev libsdl-dev libv4l-dev osip-dev speex-dev xorg-libXv-dev"
     1.6  
     1.7 +current_version()
     1.8 +{
     1.9 +	local base=http://download-mirror.savannah.gnu.org/releases/linphone
    1.10 +	wget -O - $base/$(wget -O - $base 2>/dev/null | \
    1.11 +	sed '/href="[0-9]/!d;s|.*href="\(.*\)/".*|\1|' | sort -Vr | sed q)/sources/ 2>/dev/null | \
    1.12 +	sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
    1.13 +}
    1.14 +
    1.15  # Rules to configure and make the package.
    1.16  compile_rules()
    1.17  {