aboutsummaryrefslogtreecommitdiffstats
path: root/main/gnumeric/APKBUILD
blob: 72b580ded66eb967a81ed4d1da5c3c03332de4c2 (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
54
55
56
57
58
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gnumeric
pkgver=1.12.33
pkgrel=0
pkgdesc="A GNOME Spreadsheet Program"
url="http://www.gnome.org/projects/gnumeric/"
arch="all"
license="GPL"
makedepends="gtk+3.0-dev intltool desktop-file-utils goffice-dev rarian
	python2-dev py-gobject3-dev libxslt-dev bison flex itstool
	libxml2-utils
	autoconf automake libtool"
install=
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/1.12/$pkgname-$pkgver.tar.xz
	gnumeric-1.12.33-destdir.patch
	gnumeric-1.12.33-docbook.patch
	"

builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	autoreconf -vif
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--disable-static \
		--with-python \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make -j1 DESTDIR="$pkgdir" install || return 1
}

md5sums="427e7a972bfe81ccf2c017b710968bef  gnumeric-1.12.33.tar.xz
c38369278060da82815781b72edec5cb  gnumeric-1.12.33-destdir.patch
3093843382aca463c84d6bb562c4fb7d  gnumeric-1.12.33-docbook.patch"
sha256sums="7eade408b6c20d2e8ad557d539e5e2f29705845a2eaa181b38934bb0cad49c0b  gnumeric-1.12.33.tar.xz
7118e5108ee906098fcdfd8390ddeb6c7a225f92ab36a1a8bd2c05d5fd902e44  gnumeric-1.12.33-destdir.patch
fb3bf7eb30552b7ae75f7b2dca6326b015bd197dd7e8ec43f8e14ab6de2d4d85  gnumeric-1.12.33-docbook.patch"
sha512sums="75a91cab88fdf7788e5ae3a7ab8e6fc9dd0f362bd2410841870c9e93e40ed84bd99a4f143b19af73300a6ac42f2f37c3331038e842b38bed2fa2aa38205f071b  gnumeric-1.12.33.tar.xz
7b2e37d5226172df358ef0af12fda55114f2c64cb05de189d577e84c0b03025e91860d998e29529ab9ffcf639c394a09d64d5400ab283b489dd0303b7959dfa3  gnumeric-1.12.33-destdir.patch
d2f1f232cd8ab92d72a90e7288d2f7653df385bd132766dbf27de56f90af1bf56ef3c545af9decd617dac3571adc36eb0fa4b901ca41feabf35b20dfff919fcb  gnumeric-1.12.33-docbook.patch"