# Maintainer: Natanael Copa pkgname=gnumeric pkgver=1.12.28 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 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="147ddb28b9ec7106d36f4ff82f66f840 gnumeric-1.12.28.tar.xz" sha256sums="02d4ad13389e51f24638a0a59dbfb870ec8120efc453b2dca8804167f2b94dbb gnumeric-1.12.28.tar.xz" sha512sums="9f2ecfe47a16f02edec3038f3deb67200bd4280d6e49709c4c1cbef95857bfd10b0b1789345216fa0ad4018d4bce8284d37c294dc0fddb62094283ec5a22cf54 gnumeric-1.12.28.tar.xz"