# Depends on: python2-cairo gobject-introspection xorg-libxxf86vm meson ninja

description="provides the links of Python 2 for the class GObject of GLib."
url="http://www.gnome.org/"
packager="tnut <tnut@nutyx.org>"
contributors="Pierre B"

name=python2-gobject
version=3.30.1

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

meson --prefix=/usr -D python=/usr/bin/python
ninja
DESTDIR=$PKG ninja install
rm -r $PKG/usr/{lib/pkgconfig,include}
}
uptodate(){
local latest lastversion url
url="http://ftp.gnome.org/pub/gnome/sources/pygobject"
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"
} 
