# Depends on: glib

description="Used to describe the program APIs and collect them in a uniform, machine readable format."
url="http://live.gnome.org/GObjectIntrospection"
packager="tnut <tnut@nutyx.org>"
contributors="Fanch"

name=gobject-introspection
version=1.58.2

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

build() {
cd $name-$version
./configure --prefix=/usr --disable-static
make
make DESTDIR=$PKG install

# Obsolets libs
rm $PKG/usr/lib/gobject-introspection/giscanner/_giscanner.la
rm $PKG/usr/lib/libgirepository-1.0.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 "-" -f4`"
echo "$lastversion"
}
