# Depends on: libsoup gobject-introspection 

description="Gives more easily access to internet services which says be 'RESTful'."
url="http://www.gnome.org/"
packager="fanch <fanch@nutyx.org>"
contributors="Pierre B"

name=librest
version=0.8.1
release=2

source=(http://ftp.gnome.org/pub/gnome/sources/rest/${version%.*}/rest-$version.tar.xz)

build() {
cd rest-$version
./configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --with-ca-certificates=/etc/ssl/certs
make
make DESTDIR=$PKG install

# Obsolets libs
rm $PKG/usr/lib/librest-0.7.la
rm $PKG/usr/lib/librest-extras-0.7.la
}
uptodate(){
local latest lastversion url
url="http://ftp.gnome.org/pub/gnome/sources/rest"
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"
}
