description="Documentation meta-data library, designed as a replacement for Scrollkeeper."
url="http://www.gnome.org/"

packager="tnut <tnut@nutyx.org>"
contributors="Pierre B"

makedepends=(libxslt)

name=rarian
version=0.8.1
release=3

source=(https://download.gnome.org/sources/rarian/${version%.*}/$name-$version.tar.bz2)
build() {
cd $name-$version
./configure --prefix=/usr \
--localstatedir=/var
make
make DESTDIR=$PKG install
rm $PKG/usr/lib/librarian.la
}
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"
}
