aboutsummaryrefslogtreecommitdiffstats
path: root/main/goffice0.8/APKBUILD
blob: 54829f2cdd5256bc4440df2bf911ce70b63857c6 (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
50
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=goffice0.8
_realname=goffice
pkgver=0.8.17
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"
makedepends="$depends_dev intltool gtk+-dev autoconf automake libtool gtk-doc"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="http://ftp.gnome.org/pub/gnome/sources/$_realname/$_maj.$_min/$_realname-$pkgver.tar.bz2
	goffice-0.8.17-no-pcre.patch
	use-apiver-for-dirs.patch
	"

prepare() {
	cd "$srcdir"/$_realname-$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
}

build() {
	cd "$srcdir"/$_realname-$pkgver
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--without-gconf \
		--disable-static \
		|| return 1
	make || return 1
}

package() {
	cd "$srcdir"/$_realname-$pkgver
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la "$pkgdir"/usr/lib/goffice/*/plugins/*/*.la
}

md5sums="b4c924457163e02daf8a8d2428f51d10  goffice-0.8.17.tar.bz2
bf54fa8b063b79b857e5b572e94a162a  goffice-0.8.17-no-pcre.patch
4054dd4ecec9f7e48d71413648f73768  use-apiver-for-dirs.patch"