# Maintainer: Natanael Copa pkgname=gnumeric pkgver=1.12.22 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 libxslt-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="84e39df0028b3b6091ca55a3b538070e gnumeric-1.12.22.tar.xz" sha256sums="3908cfd6520b599eefefe222aadeaa5126394b54d9a9a7f5e0f938eb674dcf47 gnumeric-1.12.22.tar.xz" sha512sums="04accd723db1b88fab80c93234f584f99138ae9c04fe6809cac59d5d4be9f4c105c288f6607ac22f019e3388ad821461e2423405353a42d3936c067219683390 gnumeric-1.12.22.tar.xz"