# Description: Gnumeric spreadsheet -- last GTK2 release # URL: http://www.gnumeric.org/ # Maintainer: Petar Petrov, slackalaxy at gmail dot com # Depends on: goffice08 python name=gnumeric-gtk2 version=1.10.17 release=4 source=(https://download-fallback.gnome.org/sources/gnumeric/${version%.*}/gnumeric-$version.tar.bz2) build() { cd gnumeric-$version # use this version of libxml2 export PKG_CONFIG_PATH="/usr/lib/libxml210/pkgconfig:$PKG_CONFIG_PATH" export CPPFLAGS="-I/usr/include/libxml210/" export LDFLAGS="-L/usr/lib/libxml210 $LDFLAGS" touch doc/C/gnumeric-C.omf.out CPPFLAGS="-I/usr/include/libxml210/" \ LDFLAGS="-L/usr/lib/libxml210 $LDFLAGS" \ CFLAGS="$CFLAGS -fcommon -Wl,-rpath,/usr/lib/libxml210" \ CXXFLAGS="$CXXFLAGS -fcommon -Wl,-rpath,/usr/lib/libxml210" \ ./configure --prefix=/usr \ --disable-schemas-install \ --disable-nls CPPFLAGS="-I/usr/include/libxml210/" \ LDFLAGS="-L/usr/lib/libxml210 $LDFLAGS" \ CFLAGS="$CFLAGS -fcommon -Wl,-rpath,/usr/lib/libxml210" \ CXXFLAGS="$CXXFLAGS -fcommon -Wl,-rpath,/usr/lib/libxml210" \ make make DESTDIR=$PKG install rm -rf $PKG/usr/share/{locale,omf,gnome} rm -f $PKG/{,usr/}lib/*.la # Running "update-desktop-database" complains, warning that # usage of MIME type "zz-application/zz-winassoc-xls" is discouraged sed -i "s:zz-application/zz-winassoc-xls:application/vnd.ms-excel:" $PKG/usr/share/applications/gnumeric.desktop }