aboutsummaryrefslogtreecommitdiffstats
path: root/main/gnumeric/APKBUILD
blob: aeda87c4e30f4cb974253f5b9457e623e5f90cd5 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gnumeric
pkgver=1.12.24
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 libxslt-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
}

md5sums="03d65b774329d060ab6f5d758ceee8fb  gnumeric-1.12.24.tar.xz"
sha256sums="c59d5271b27366008bccb4d53ad8333da36d837003a018892f2da325c1449551  gnumeric-1.12.24.tar.xz"
sha512sums="71bed41a1b50ed57e9ab4993df8d963cb14a9f6f3fbf87d81c30f71359a23c4092daab00079936e587a118041a303c1c563bcd3f38f2aaea78a9ae5593dcdd4b  gnumeric-1.12.24.tar.xz"