aboutsummaryrefslogtreecommitdiffstats
path: root/community/goffice/APKBUILD
blob: f18f0c9251070b3defffc9cf94141be74cce58bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=goffice
pkgver=0.10.43
pkgrel=0
_maj=${pkgver%%.*}
_min=${pkgver#${_maj}.}
_min=${_min%%.*}
pkgdesc="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-or-later OR GPL-3.0-or-later"
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
	testsuite-workaround.patch
	"
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="979ccf67fe08d09a2cf0413b4674a44208aa5f4802ab086a463ea2b449fc8c9d1c96dea7234c8e715064cf1726a47d2a5428728a2ff0d00759d5fe7017dc709f  goffice-0.10.43.tar.xz
1addcc0e3f1c4d908fbe4caf2a31a3ac8957f03ccce55f8a81f059ad8d40a79cb51a72ba33a57b027fce85f29b335c126f567cb0a8cef2f25d5cff79287655d4  testsuite-workaround.patch"