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,Spiky"

makedepends=(flex bison glib meson ninja)

name=gobject-introspection
version=1.74.0
release=2

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

build=meson

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 "-" -f4`"
echo "$lastversion"
}
