# Maintainer: Natanael Copa pkgname=gnumeric pkgver=1.12.4 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="0ec8e9902245fc099ca985ece80e48af gnumeric-1.12.4.tar.xz" sha256sums="562e17d8b56f4587e33f54adff89a65ede6e6e0c57bcd561589453d8edae80bd gnumeric-1.12.4.tar.xz" sha512sums="58ae4015a8c7fbef1fc8675092ed8f3997091cd7efb579db402d253b0bbb61f1445d97f84e5bda864698f96a25f979c82ced338d5d2c887b20d31d131a8c4884 gnumeric-1.12.4.tar.xz"