description="provides the links of Python 3 for the class GObject of GLib." url="http://www.gnome.org/" license="GPL2.1" packager="spiky " contributors="Pierre,Tnut" makedepends=(python-cairo gobject-introspection xorg-libxxf86vm libffi meson ninja) run=(python) name=python-gobject version=3.46.0 source=(https://download.gnome.org/sources/pygobject/${version%.*}/pygobject-$version.tar.xz) build() { cd pygobject-$version mkdir build cd build meson setup .. \ --prefix=/usr \ -D python=/usr/bin/python3 ninja DESTDIR=$PKG ninja install install -Dm644 ../COPYING $PKG/usr/share/licenses/$name/COPYING } uptodate(){ local latest lastversion url url="https://download.gnome.org/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" }