# Maintainer: Natanael Copa pkgname=gnumeric pkgver=1.12.5 pkgrel=0 pkgdesc="A GNOME Spreadsheet Program" url="http://www.gnome.org/projects/gnumeric/" arch="all" license="GPL" makedepends="gtk+3.0-dev intltool desktop-file-utils goffice-dev rarian python-dev py-gobject3-dev" install= subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/1.12/$pkgname-$pkgver.tar.xz" _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-static \ --with-python \ || return 1 make itlocaledir="/usr/share/locale" || return 1 } package() { cd "$_builddir" make -j1 itlocaledir="/usr/share/locale" \ DESTDIR="$pkgdir" install || return 1 rm "$pkgdir"/usr/lib/*.la \ "$pkgdir"/usr/lib/*/*/plugins/*/*.la } md5sums="6c33601214aefc52742fdaf28246e137 gnumeric-1.12.5.tar.xz" sha256sums="7ff36dff134157ce6919c4cebc1a419192e529b00e42c52d9cebbd15e8dd5871 gnumeric-1.12.5.tar.xz" sha512sums="8576523fd5cb26ffbe54f1bf8435177ac872ce2d72d0246523e156e36b826be15d7bb8c1fad6db697c06f510cbba0bbec6ee8e524e6a3b961461c9351dcde819 gnumeric-1.12.5.tar.xz"