aboutsummaryrefslogtreecommitdiffstats
path: root/community/libwpd/APKBUILD
blob: 2835182655cc5ba86540e3b0f91d67a75cc9271e (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
55
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libwpd
pkgver=0.10.1
pkgrel=0
pkgdesc="Import filter and tools for WordPerfect Documents"
url="http://sourceforge.net/p/libwpd/"
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/libwpd/libwpd/libwpd-$pkgver/libwpd-$pkgver.tar.bz2"

_builddir="$srcdir"/libwpd-$pkgver
prepare() {
	local i
	cd "$_builddir"
	update_config_sub || return 1
	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="79b56bcc349264d686a67994506ad199  libwpd-0.10.1.tar.bz2"
sha256sums="efc20361d6e43f9ff74de5f4d86c2ce9c677693f5da08b0a88d603b7475a508d  libwpd-0.10.1.tar.bz2"
sha512sums="aa99a11675b76d6357cd6479ed4cc0e04cd42d9f6ef76da3627310b683c6528c05ebd5cd1c3fcd878f288e56a05d11d81e90b2a0c5d03d4fa9644eb6f16d955e  libwpd-0.10.1.tar.bz2"