# Maintainer: Natanael Copa pkgname=goffice pkgver=0.10.27 pkgrel=0 _maj=${pkgver%%.*} _min=${pkgver#${_maj}.} _min=${_min%%.*} pkgdesc="A library of document-centric objects and utilities built on top of GLib and Gtk+" url="http://www.gnome.org" arch="all" license="GPL" depends_dev="glib-dev libgsf-dev cairo-dev libxml2-dev gtk+3.0-dev librsvg-dev" makedepends="$depends_dev intltool gtk+-dev autoconf automake libtool gtk-doc libxslt-dev" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/$_maj.$_min/$pkgname-$pkgver.tar.xz localedir.patch" prepare() { cd "$srcdir"/$pkgname-$pkgver for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done libtoolize --force && aclocal && autoconf \ && automake --add-missing --gnu } build() { cd "$srcdir"/$pkgname-$pkgver ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-static \ || return 1 make || return 1 } package() { cd "$srcdir"/$pkgname-$pkgver make DESTDIR="$pkgdir" install || return 1 } md5sums="15666df449d9de66cc246ec70aa7bd55 goffice-0.10.27.tar.xz 0d9a3666263a57c43574b89b638a6503 localedir.patch" sha256sums="3717b400fd190f18cf1dd7a16e1991b1f7c7cbdfeb1993656e7972347168d8c0 goffice-0.10.27.tar.xz 05bfe0446d29ae7dd443600a58d172d1bb4f3d1d24886e785dfcc108c2d0e8ce localedir.patch" sha512sums="31776e03928f7128319d3db7b6a049fbd2b9bbab56546666df7fd4b65c62ec96323a298e00d61d129bf4fbd7c148d0e94eee06014bef30f544225f1fc7ddf903 goffice-0.10.27.tar.xz 4e1138f1ec2e4f2d1eb85df653542195aa9caf512c759c54f6b275750a819d9684f590e0c8c01203050c1b3901f57ac6e113649f05ddc09b4d782307fd4e58d6 localedir.patch"