# Depends on: libgsf libglade pango pcre gtk3 librsvg

description="The GOffice package contains a library of GLib/GTK document centric objects and utilities."
url="http://freecode.com/projects/goffice"
contributors="Tnut, Greg"
packager="tnut <tnut@nutyx.org>"

name=goffice
version=0.10.44

source=(http://ftp.gnome.org/pub/gnome/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="http://ftp.gnome.org/pub/gnome/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"
}
