aboutsummaryrefslogtreecommitdiffstats
path: root/main/librevenge/APKBUILD
blob: 156e94c3e52e6d1fe61a174976b30be1aab6d3a9 (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
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=librevenge
pkgver=0.0.2
pkgrel=0
pkgdesc="Base library for writing document import filters"
url="http://sourceforge.net/projects/libwpd/"
arch="all"
license="MPL2"
depends=""
depends_dev="boost-dev zlib-dev cppunit-dev"
makedepends="$depends_dev doxygen"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://sourceforge.net/projects/libwpd/files/$pkgname/$pkgname-$pkgver/$pkgname-$pkgver.tar.xz"

_builddir="$srcdir"/$pkgname-$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 \
		--disable-dependency-tracking \
		--enable-fast-install \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="4ee55a80ee32af6752dd8c56eb1b1b5e  librevenge-0.0.2.tar.xz"
sha256sums="f6f280c4345546aad16aeafd5cf2e4a4ac31a81606171755465bba0d96efcf0f  librevenge-0.0.2.tar.xz"
sha512sums="28e53aefdfe8585ef148781e53379a986b5becb459a27dffe8546341e7ada6a3323bc27ab3170227a532e796869b634ad0443324af72b16835a4287a64994637  librevenge-0.0.2.tar.xz"