description="Syntax highlighting for the GtkTextView widget" url="http://mail.gnome.org/mailman/listinfo/gnome-devtools" packager="tnut " makedepends=(gtk3 libxml2) name=gtksourceview version=3.24.11 release=2 source=(https://download.gnome.org/sources/gtksourceview/${version:0:4}/${name}-$version.tar.xz) package() { # Obsolet lib rm $PKG/usr/lib/libgtksourceview-3.0.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" }