# Contributor: Timo Teräs # Maintainer: Timo Teräs pkgname=libvisio pkgver=0.1.4 pkgrel=0 pkgdesc="Import filter and tools for MS Visio Diagrams" url="https://wiki.documentfoundation.org/DLP/Libraries/libvisio" arch="all" license="MPL2.0" depends="" depends_dev="boost-dev librevenge-dev icu-dev libwpd-dev libwpg-dev libxml2-dev zlib-dev" makedepends="$depends_dev doxygen gperf perl" install="" subpackages="$pkgname-dev $pkgname-doc $pkgname-tools" source="http://dev-www.libreoffice.org/src/$pkgname/$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" # boost -1.59 export CPPFLAGS='-DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED' ./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="bf5f66ef14b789cd5824de8b31841867 libvisio-0.1.4.tar.xz" sha256sums="0c1b1b34382aaeb6dad8077d0bfb153cad7de6229ce59c99e6523a88ffd01038 libvisio-0.1.4.tar.xz" sha512sums="a9c0df4c9755f8c61e6e020038ac9e5440ca6096390ee4f28912c3ca52180c6882cf7736c2e2ef4c3cd84bfbcceb1e4327af71f036e9c5c4316cb96a7f116938 libvisio-0.1.4.tar.xz"