description="The GOffice package contains a library of GLib/GTK document centric objects and utilities."
url="http://freecode.com/projects/goffice"

contributors="Greg,Spiky,Tnut"
packager="Tnut <tnut@nutyx.org>"

makedepends=(libgsf libglade pango pcre gtk3 librsvg)

name=goffice
version=0.10.54

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
}
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"
}
