# Contributor: Timo Teräs # Maintainer: Timo Teräs pkgname=libcdr pkgver=0.1.2 pkgrel=0 pkgdesc="Import filter and tools for Corel DRAW files" url="https://wiki.documentfoundation.org/DLP/Libraries/libcdr" arch="all" license="MPL2" depends="" depends_dev="boost-dev librevenge-dev lcms2-dev zlib-dev icu-dev" makedepends="$depends_dev doxygen" 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() { default_prepare update_config_sub } build() { cd "$builddir" # workaround for boost-1.59 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 \ || 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="c8f6c5e3b5769c9814e07ce5b9d07fba libcdr-0.1.2.tar.xz" sha256sums="6bdb20bcdec5ad1a115d0a3aada7d4b2758e9d22801d72b4ecc2e55fb3d5d42c libcdr-0.1.2.tar.xz" sha512sums="c5c08444fa28be13b60ba1aa515a47606de80b079cbabb0276f54064820fecb2a6ee50a8b33a6cc1b2f5f46323d3de7f00822aadec5c3058a14adebf5255da91 libcdr-0.1.2.tar.xz"