# Contributor: Timo Teräs # Maintainer: Timo Teräs pkgname=librevenge pkgver=0.0.4 pkgrel=0 pkgdesc="Base library for writing document import filters" url="https://sourceforge.net/projects/libwpd/" arch="all" license="MPL-2.0" depends="" depends_dev="boost-dev zlib-dev cppunit-dev" makedepends="$depends_dev doxygen" install="" subpackages="$pkgname-dev $pkgname-doc" source="https://sourceforge.net/projects/libwpd/files/$pkgname/$pkgname-$pkgver/$pkgname-$pkgver.tar.xz" _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" # 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 ./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 } md5sums="2677cf97716c699146f999575ac0147d librevenge-0.0.4.tar.xz" sha256sums="933f0729f04267cc354b9a02bc3e9afefa5512a3bdd0b45f159ee14a3e3347b2 librevenge-0.0.4.tar.xz" sha512sums="c4c2c98bac3522c8bd487058f4db19d85ad0d99159c4de4ffde91a10ea3adb7f995ebe8ccf6afcf533d81f50fb654bf265b9cd197508f85b5b68a101ca279712 librevenge-0.0.4.tar.xz"