# Maintainer: Natanael Copa pkgname=goffice pkgver=0.10.37 pkgrel=1 _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-2.0-only OR GPL-3.0-only" makedepends="librsvg-dev intltool gtk+-dev autoconf automake libtool gtk-doc libxslt-dev gobject-introspection-dev glib-dev libgsf-dev cairo-dev libxml2-dev gtk+3.0-dev" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" source="https://download.gnome.org/sources/$pkgname/$_maj.$_min/$pkgname-$pkgver.tar.xz" prepare() { default_prepare libtoolize --force && aclocal && autoconf \ && automake --add-missing --gnu } build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-static \ --enable-introspection make } check() { cd "$builddir" make check } package() { cd "$builddir" make DESTDIR="$pkgdir" install } sha512sums="0d4a3465fc37ba46e04b12af8f8163348a03b144883765dce252f80502a771d066ce2d2c4d67425b0e8ad1caa3dd04fe49acdb7b2ec76edd4d3eabdb7da36254 goffice-0.10.37.tar.xz"