description="The libcroco package contains a standalone CSS2 parsing and manipulation library."
url="https://launchpad.net/libcroco"

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

makedepends=(libxml2 glib)

name=libcroco
version=0.6.13
release=3

source=(https://download.gnome.org/sources/libcroco/0.6/$name-$version.tar.xz)


build=autotools

package(){
rm $PKG/usr/lib/$name-0.6.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"
}
