description="The GOffice package contains a library of GLib/GTK document centric objects and utilities." url="http://freecode.com/projects/goffice" license="GPL2 GPL3" contributors="Greg,Tnut" packager="spiky " makedepends=(libgsf libglade pango pcre gtk3 librsvg) name=goffice version=0.10.56 source=(https://download.gnome.org/sources/$name/${version%.*}/$name-$version.tar.xz) package() { rm $PKG/usr/lib/libgoffice-0.10.la for FILE in `find $PKG/usr/lib/goffice/$version/plugins -name "*.la"` do rm $FILE done install -Dm644 $SRC/$name-$version/COPYING $PKG/usr/share/licenses/$name/COPYING install -Dm644 $SRC/$name-$version/COPYING-gpl2 $PKG/usr/share/licenses/$name/COPYING-gpl2 install -Dm644 $SRC/$name-$version/COPYING-gpl3 $PKG/usr/share/licenses/$name/COPYING-gpl3 } 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" }