# Description: Goffice legacy # URL: http://ftp.gnome.org/pub/GNOME/sources/goffice/ # Maintainer: Petar Petrov, slackalaxy at gmail dot com # Depends on: brotli gconf graphite2 gtk libgsf xorg-libxdamage name=goffice08 version=0.8.17 release=3 source=(http://ftp.gnome.org/pub/GNOME/sources/goffice/${version%.*}/goffice-$version.tar.xz disable-linking-pcre.patch go-conf-gsettings.c) build() { cd goffice-$version export PKG_CONFIG_PATH="/usr/lib/libxml210/pkgconfig:$PKG_CONFIG_PATH" export CPPFLAGS="-I/usr/include/libxml210/" export LDFLAGS="-L/usr/lib/libxml210 $LDFLAGS" # https://bugzilla.gnome.org/show_bug.cgi?id=670316 patch -p1 -i $SRC/disable-linking-pcre.patch CPPFLAGS="-I/usr/include/libxml210/" \ LDFLAGS="-L/usr/lib/libxml210 $LDFLAGS" \ CFLAGS="$CFLAGS -Wl,-rpath,/usr/lib/libxml210" \ CXXFLAGS="$CXXFLAGS -Wl,-rpath,/usr/lib/libxml210" \ ./configure --prefix=/usr # https://mail.gnome.org/archives/commits-list/2011-November/msg05571.html cp $SRC/go-conf-gsettings.c goffice/app/ CPPFLAGS="-I/usr/include/libxml210/" \ LDFLAGS="-L/usr/lib/libxml210 $LDFLAGS" \ CFLAGS="$CFLAGS -Wl,-rpath,/usr/lib/libxml210" \ CXXFLAGS="$CXXFLAGS -Wl,-rpath,/usr/lib/libxml210" \ make make install DESTDIR=$PKG rm -rf $PKG/usr/share/{gtk-doc,locale} rm -f $PKG/{,usr/}lib/*.la }