summaryrefslogtreecommitdiffstats
path: root/main/gnumeric/APKBUILD
blob: b0eb6e8df6010bf67a7589ea08d11ea9beaf50e8 (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=gnumeric
pkgver=1.12.7
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
	python-dev py-gobject3-dev" 
install=
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/1.12/$pkgname-$pkgver.tar.xz"

_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
}

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

package() {
	cd "$_builddir"
	make -j1 itlocaledir="/usr/share/locale" \
		DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la \
		"$pkgdir"/usr/lib/*/*/plugins/*/*.la
}

md5sums="31c8cc37a7cfc571a1aa84437bf36b21  gnumeric-1.12.7.tar.xz"
sha256sums="5de9cca87efb2ea190bcddf57bd83a34e7f9580f5b7c92c6757707d1164748ef  gnumeric-1.12.7.tar.xz"
sha512sums="02e74d1dcca043b65241f81eafc9ceb99944b95561aa4db353a9e219d76a2ee25313026fbe946c034a65c6868918004990aae4997438e3e0f2f97228166e5e43  gnumeric-1.12.7.tar.xz"