aboutsummaryrefslogtreecommitdiffstats
path: root/main/libwps/APKBUILD
blob: 7f675cfcad18308e8e695efdf1686c10f77ed43f (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
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libwps
pkgver=0.4.0
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
prepare() {
	local i
	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 \
		--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
}

md5sums="e9162d2566421d9d71b3ad2377a68fd5  libwps-0.4.0.tar.bz2"
sha256sums="b60d574aefe6a2e446500edb8802f9bc7885fa261e2e47ee3042432a02bb2d35  libwps-0.4.0.tar.bz2"
sha512sums="ade57aa69dfe89f7bcf56b1a18d4be6fe17427d8f3123c298533d1f486b9d6c12a60ded54d270996b8efefad61009ae909e7e0942eb8b750f4c99d9a883cd192  libwps-0.4.0.tar.bz2"