# Maintainer: Natanael Copa pkgname=gnumeric pkgver=1.12.31 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 python2-dev py-gobject3-dev libxslt-dev bison flex" 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 } md5sums="d61f890da7a3e0e14adfc65b93583c67 gnumeric-1.12.31.tar.xz" sha256sums="c8ace78e75c280dced3f15b27c44c7a98e8d21cd8361c6b2599cce191f6d6ae7 gnumeric-1.12.31.tar.xz" sha512sums="e6d6cef034517015fffc2938e69f1b9e47f12ad7ae5fc6fcf7c5d95bda06d37c234048c2621fda8f2576a811b20698aea8a3313d020c1bceb8337f66f8d41fb6 gnumeric-1.12.31.tar.xz"