# Depends on: gdk-pixbuf libcroco pango vala gtk-doc rustc

description="Library and tools used to manipulate, convert and view Scalable Vector Graphic images."
url="http://librsvg.sourceforge.net/"
packager="tnut <tnut@nutyx.org>"
contributors="Pierre B"

name=librsvg
version=2.44.10

source=(http://ftp.gnome.org/pub/gnome/sources/$name/${version%.*}/$name-$version.tar.xz)
build() {
cd $name-$version
./configure --prefix=/usr \
--disable-static \
--enable-vala \
--enable-gtk-doc

make
make DESTDIR=$PKG install
rm $PKG/usr/lib/librsvg-2.la
rm $PKG/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.la
}
uptodate(){
local latest lastversion url
url="http://ftp.gnome.org/pub/gnome/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"
}
