wok-6.x diff libsecret/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 1daf24fb0842
children
line diff
     1.1 --- a/libsecret/receipt	Wed Mar 20 17:15:12 2019 +0100
     1.2 +++ b/libsecret/receipt	Tue Sep 28 17:26:43 2021 +0000
     1.3 @@ -2,7 +2,7 @@
     1.4  
     1.5  PACKAGE="libsecret"
     1.6  VERSION="0.18.5"
     1.7 -SERIES="0.18"
     1.8 +SERIES="${VERSION%.*}"	# first two numbers from version
     1.9  SHORT_DESC="GObject based library for accessing the Secret Service API"
    1.10  MAINTAINER="devl547@gmail.com"
    1.11  LICENSE="LGPL2.1"
    1.12 @@ -15,6 +15,12 @@
    1.13  DEPENDS="libgio libgpg-error"
    1.14  BUILD_DEPENDS="libgcrypt-dev gobject-introspection-dev vala"
    1.15  
    1.16 +current_version()
    1.17 +{
    1.18 +	wget -O - $(dirname $WGET_URL) 2>/dev/null | \
    1.19 +	sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
    1.20 +}
    1.21 +
    1.22  # Rules to configure and make the package.
    1.23  compile_rules()
    1.24  {