aboutsummaryrefslogtreecommitdiffstats
path: root/main/libwps/APKBUILD
blob: 9e561c59a2a310a347dd6e0b05df94e4990407ac (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
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libwps
pkgver=0.4.3
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
}

md5sums="027fb17fb9e43553aa6624dc18f830ac  libwps-0.4.3.tar.bz2"
sha256sums="0c30407865a873ff76b6d5b2d2aa599f6af68936638c81ca8292449324042a6c  libwps-0.4.3.tar.bz2"
sha512sums="a7be3997962a7aab4f471ef0d4b7c13d5af2bbcd6ab0ecd0f62f191ba6c9ce96f68043930ff1cdddc4f4690d893475a49ad534651bf5f5e37fa82d5ae52c851a  libwps-0.4.3.tar.bz2"