# Maintainer: Natanael Copa pkgname=gnumeric pkgver=1.12.2 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 libglade-dev goffice-dev rarian" 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 --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-schemas-install \ --disable-static \ --enable-ssindex || 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="711daa98da0138203fb2f8dc4dcddb3c gnumeric-1.12.2.tar.xz" sha256sums="d6fda191c1c76be2ede21fe78b8c9f96d39aea82ccfb537775a83bf88d781874 gnumeric-1.12.2.tar.xz" sha512sums="6f41941e40f5fb3cafebb194082e6d4597caee6b9b1d2c271b8d67e8c78e2d87e366932914d62bd6f5ce6c1bbc2b7e26d5800fbfbc16905576057c3de1244fed gnumeric-1.12.2.tar.xz"