summaryrefslogtreecommitdiff
path: root/extra/goffice0.8
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-12-20 03:05:00 -0800
committerroot <root@rshg054.dnsready.net>2012-12-20 03:05:00 -0800
commitfecd6286e00e6e25458a7d1b8b80f6fdb236a7a2 (patch)
tree952afb5fdba1e4450e623d86f75b09ad4925bd40 /extra/goffice0.8
parent19f11e0c4bbeefd65f85546a361e18532b60416a (diff)
Thu Dec 20 02:59:11 PST 2012
Diffstat (limited to 'extra/goffice0.8')
-rw-r--r--extra/goffice0.8/PKGBUILD33
-rw-r--r--extra/goffice0.8/use-apiver-for-dirs.patch32
2 files changed, 65 insertions, 0 deletions
diff --git a/extra/goffice0.8/PKGBUILD b/extra/goffice0.8/PKGBUILD
new file mode 100644
index 000000000..8d794e218
--- /dev/null
+++ b/extra/goffice0.8/PKGBUILD
@@ -0,0 +1,33 @@
+# $Id: PKGBUILD 173347 2012-12-19 14:13:59Z jgc $
+# Maintainer: Aaron Griffin <aaron@archlinux.org>
+
+pkgname=goffice0.8
+pkgver=0.8.17
+pkgrel=2
+pkgdesc="A library of document-centric objects and utilities built on top of GLib and Gtk+"
+arch=('i686' 'x86_64')
+url="http://www.gnome.org"
+license=('GPL')
+options=('!libtool')
+depends=('gtk2' 'gconf' 'libgsf')
+conflicts=('goffice<0.10')
+makedepends=('pkgconfig' 'intltool' 'gtk-doc')
+source=(http://ftp.gnome.org/pub/gnome/sources/goffice/${pkgver%.*}/goffice-${pkgver}.tar.xz
+ use-apiver-for-dirs.patch)
+sha256sums=('165070beb67b84580afe80a8a100b674a81d553ab791acd72ac0c655f4fadb15'
+ '4507a49f6ccb13e55c0b3cc6831b7e0dcec7badb58a3661190e843f8607fa270')
+
+build() {
+ cd "${srcdir}/goffice-${pkgver}"
+ patch -Np0 -i "${srcdir}/use-apiver-for-dirs.patch"
+ sed -i -e 's/glib\/gregex.h/glib.h/' configure.in
+ autoreconf -fi
+ ./configure --prefix=/usr --sysconfdir=/etc \
+ --localstatedir=/var --disable-static
+ make
+}
+
+package() {
+ cd "${srcdir}/goffice-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+}
diff --git a/extra/goffice0.8/use-apiver-for-dirs.patch b/extra/goffice0.8/use-apiver-for-dirs.patch
new file mode 100644
index 000000000..3d0909da3
--- /dev/null
+++ b/extra/goffice0.8/use-apiver-for-dirs.patch
@@ -0,0 +1,32 @@
+--- configure.in.orig 2011-09-07 08:45:49.687783970 +0000
++++ configure.in 2011-09-07 09:12:55.709382840 +0000
+@@ -418,7 +418,7 @@
+ fi
+
+ dnl **************************************************
+-AC_SUBST(GETTEXT_PACKAGE, goffice-${VERSION})
++AC_SUBST(GETTEXT_PACKAGE, goffice-${GOFFICE_API_VER})
+ AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
+ [The package name, for gettext])
+ AM_GLIB_GNU_GETTEXT
+@@ -638,9 +638,9 @@
+ dnl ******************
+ dnl
+ dnl These are changed in goffice.c for WIN32 packages
+-AC_SUBST(goffice_datadir, '${datadir}/goffice/${VERSION}')
+-AC_SUBST(goffice_libdir, '${libdir}/goffice/${VERSION}')
+-AC_SUBST(goffice_icondir, '${datadir}/pixmaps/goffice/${VERSION}')
++AC_SUBST(goffice_datadir, '${datadir}/goffice/${GOFFICE_API_VER}')
++AC_SUBST(goffice_libdir, '${libdir}/goffice/${GOFFICE_API_VER}')
++AC_SUBST(goffice_icondir, '${datadir}/pixmaps/goffice/${GOFFICE_API_VER}')
+ AC_SUBST(goffice_localedir, '${prefix}/${DATADIRNAME}/locale')
+ dnl
+ AC_SUBST(goffice_plugindir, '${goffice_libdir}/plugins')
+--- libgoffice.pc.in.orig 2010-02-18 22:49:39.000000000 +0000
++++ libgoffice.pc.in 2011-09-07 09:18:53.655992532 +0000
+@@ -11,4 +11,4 @@
+ Libs.private: @EXTRA_LIBS@
+ Cflags: -I${includedir}/libgoffice-@GOFFICE_API_VER@ @EXTRA_INCLUDES@
+
+-PluginDir=${libdir}/goffice/@VERSION@/plugins
++PluginDir=${libdir}/goffice/@GOFFICE_API_VER@/plugins