description="The libsecret package contains a GObject based library for accessing the Secret Service API."
url="http://www.gnome.org/"

packager="spiky <spiky@nutyx.org>"
contributors="Pierre,Tnut"

makedepends=(gtk-doc intltool libxslt docbook-xsl
             glib gobject-introspection libgcrypt vala)

name=libsecret
version=0.20.5

source=(https://download.gnome.org/sources/$name/${version:0:4}/$name-$version.tar.xz)

build() {
mkdir build
cd    build

meson --prefix=/usr -Dgtk_doc=false ../$name-$version

ninja

DESTDIR=$PKG ninja install

}

uptodate(){
local latest lastversion url
url="https://download.gnome.org/sources/$name"
latest="`lynx -read_timeout=20 -dump -listonly -nonumbers \
$url/?C=N\;O=D|grep [0-9]/$|head -1`"
lastversion="`lynx -read_timeout=20 -dump -listonly -nonumbers \
$latest/?C=N\;O=D|grep LATEST|grep [0-9]$|cut -d "-" -f3`"
echo "$lastversion"
}
