# Maintainer: AndyRTR <andyrtr@archlinux.org>
# Contributor: megadriver <megadriver at gmx dot com>
# Contributor: Luca Bennati <lucak3 AT gmail DOT com>
pkgname=libcdr
pkgver=0.1.7
pkgrel=8
pkgdesc="CorelDraw file format importer library for LibreOffice"
arch=('x86_64' 'armv7h')
url="https://wiki.documentfoundation.org/DLP/Libraries/libcdr"
license=('GPL2' 'LGPL2.1' 'MPL')
depends=('lcms2' 'icu' 'librevenge'
'zlib' 'gcc-libs' 'glibc')
makedepends=('libwpg' 'boost' 'doxygen' 'cppunit')
source=(https://dev-www.libreoffice.org/src/$pkgname/$pkgname-$pkgver.tar.xz)
sha256sums=('5666249d613466b9aa1e987ea4109c04365866e9277d80f6cd9663e86b8ecdd4')
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
#check() {
# cd $pkgname-$pkgver
# make -k check
#}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
}