aboutsummaryrefslogtreecommitdiffstats
path: root/community/libstaroffice/APKBUILD
blob: c451bb90fb1d723fb180f938b8c801da67b33d62 (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
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libstaroffice
pkgver=0.0.2
pkgrel=0
pkgdesc="Import filter for StarOffice documents"
url="https://github.com/fosnola/libstaroffice"
arch="all"
license="MPL2"
depends=""
depends_dev="zlib-dev boost-dev"
makedepends="$depends_dev librevenge-dev doxygen"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/fosnola/libstaroffice/releases/download/$pkgver/libstaroffice-$pkgver.tar.xz"
builddir="$srcdir/libstaroffice-$pkgver"

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

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

md5sums="0bd47f3cab084b3be208c014eff5c520  libstaroffice-0.0.2.tar.xz"
sha256sums="762dc518690eaa1f946147e913476c3d852703357f3cdf90047dc79515651002  libstaroffice-0.0.2.tar.xz"
sha512sums="a3bf46c3be3ebfd279dcb8fd8e66c40cdf719e5b19ce25dd7c5d0a1890b5e044c862718da63c5de4b8a6b41778e30ab4ee18c09d898f7edb8e6f518d329614da  libstaroffice-0.0.2.tar.xz"