APKBUILD 1.32 KB
Newer Older
1 2 3
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=librevenge
4
pkgver=0.0.4
5
pkgrel=2
6
pkgdesc="Base library for writing document import filters"
7
url="https://sourceforge.net/projects/libwpd/"
8
arch="all"
9
license="MPL-2.0"
10 11 12 13 14
depends=""
depends_dev="boost-dev zlib-dev cppunit-dev"
makedepends="$depends_dev doxygen"
install=""
subpackages="$pkgname-dev $pkgname-doc"
15
source="https://sourceforge.net/projects/libwpd/files/$pkgname/$pkgname-$pkgver/$pkgname-$pkgver.tar.xz"
16 17

build() {
18
	cd "$builddir"
19 20 21 22 23 24

	# workaround for boost-1.59
	# http://sourceforge.net/p/libwpd/tickets/6/
	# http://sourceforge.net/p/libwpd/librevenge/ci/0beee70d1bf52f0d81b60ee8c373e477991fe546/
	export CPPFLAGS=-DBOOST_ERROR_CODE_HEADER_ONLY

25
	CXXFLAGS="$CXXFLAGS -Wno-error=implicit-fallthrough -Wno-error=parentheses" \
26 27 28 29 30 31 32 33 34
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-dependency-tracking \
35 36 37 38 39 40 41
		--enable-fast-install
	make
}

check() {
	cd "$builddir"
	make check
42 43 44
}

package() {
45 46
	cd "$builddir"
	make DESTDIR="$pkgdir" install
47 48
}

49
sha512sums="c4c2c98bac3522c8bd487058f4db19d85ad0d99159c4de4ffde91a10ea3adb7f995ebe8ccf6afcf533d81f50fb654bf265b9cd197508f85b5b68a101ca279712  librevenge-0.0.4.tar.xz"