description="For expand the functions text of GTK for include the highlighting of the syntax." url="http://www.gnome.org/" packager="tnut " contributors="Pierre B" makedepends=(gtksourceview2 python2-gtk) name=python2-gtksourceview2 version=2.10.1 release=4 source=(https://download.gnome.org/sources/pygtksourceview/2.10/pygtksourceview-${version}.tar.bz2) build() { cd pygtksourceview-$version PYTHON=python2 ./configure --prefix=/usr --sysconfdir=/etc \ --localstatedir=/var --disable-static --disable-docs make make DESTDIR=$PKG install # Obsolet lib rm $PKG/usr/lib/python2.7/site-packages/gtksourceview2.la } uptodate(){ local latest lastversion url url="https://download.gnome.org/sources/pygtksourceview" 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" }