wok-6.x diff linphone/receipt @ rev 24403
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 08 18:20:23 2022 +0000 (2022-02-08) |
parents | d0c61e885e3a |
children | cb67b4f8be05 |
line diff
1.1 --- a/linphone/receipt Wed Mar 04 14:40:01 2020 +0100 1.2 +++ b/linphone/receipt Tue Feb 08 18:20:23 2022 +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 {