aboutsummaryrefslogtreecommitdiffstats
path: root/community/libwps/APKBUILD
blob: b19172aaa4cf67760ac99708db6375343179c2f1 (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
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libwps
pkgver=0.4.6
pkgrel=0
pkgdesc="Import filter and tools for Microsoft Works files"
url="http://sourceforge.net/projects/libwps/"
arch="all"
license="MPL2"
depends=""
depends_dev="librevenge-dev"
makedepends="$depends_dev doxygen"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-tools"
source="http://downloads.sourceforge.net/project/libwps/libwps/libwps-$pkgver/libwps-$pkgver.tar.bz2"

builddir="$srcdir"/libwps-$pkgver

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

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

tools() {
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr
}

sha512sums="6a1af6ddbc5e65f898547ece3491991047f77d91e27e60ca1ebce9b72479a8f09d6b0558f3bdab49aff2a2e9cf0dff4361a75688751b5c99741311e4a462a7b2  libwps-0.4.6.tar.bz2"