aboutsummaryrefslogtreecommitdiffstats
path: root/main/goffice/APKBUILD
blob: ef9bce4f9ac6fe569b024084a9bf544afa26a5d1 (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
51
52
53
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=goffice
pkgver=0.10.23
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="93697a64c4f75544bc71d8ffe20a5836  goffice-0.10.23.tar.xz
0d9a3666263a57c43574b89b638a6503  localedir.patch"
sha256sums="1325fc38f2476977bd8d71588ccb2a57aa418260406b7c28a20098b6b4e33f9f  goffice-0.10.23.tar.xz
05bfe0446d29ae7dd443600a58d172d1bb4f3d1d24886e785dfcc108c2d0e8ce  localedir.patch"
sha512sums="1930fb744c33a9b2166243fbeefdae1ec31343890db311b8d7044efbb7c670f8f71512df91966c081c76dd0ed88bc2c1dc2dce589ffb9cfc44c6799677eefccb  goffice-0.10.23.tar.xz
4e1138f1ec2e4f2d1eb85df653542195aa9caf512c759c54f6b275750a819d9684f590e0c8c01203050c1b3901f57ac6e113649f05ddc09b4d782307fd4e58d6  localedir.patch"