# Contributor: Timo Teräs # Maintainer: Timo Teräs pkgname=librevenge pkgver=0.0.2 pkgrel=1 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" # 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="4ee55a80ee32af6752dd8c56eb1b1b5e librevenge-0.0.2.tar.xz" sha256sums="f6f280c4345546aad16aeafd5cf2e4a4ac31a81606171755465bba0d96efcf0f librevenge-0.0.2.tar.xz" sha512sums="28e53aefdfe8585ef148781e53379a986b5becb459a27dffe8546341e7ada6a3323bc27ab3170227a532e796869b634ad0443324af72b16835a4287a64994637 librevenge-0.0.2.tar.xz"