# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libzmf
pkgver=0.0.1
pkgrel=1
pkgdesc="Import filter and tools for Zoner Callisto/Draw documents"
url="https://wiki.documentfoundation.org/DLP/Libraries/libzmf"
arch="all"
license="MPL-2.0"
depends=""
depends_dev="boost-dev icu-dev libpng-dev zlib-dev"
makedepends="$depends_dev librevenge-dev doxygen"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://dev-www.libreoffice.org/src/libzmf/libzmf-$pkgver.tar.xz"
builddir="$srcdir/libzmf-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-werror \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="5a002c50af653b67b3c2aedd979a2972  libzmf-0.0.1.tar.xz"
sha256sums="eaf533ea29f9b66e75c0dcb631f1616b4f3cec9474e4fa0d2835769056a0e57a  libzmf-0.0.1.tar.xz"
sha512sums="cf601974a762ddee45430c136f40231e7659884544881ab37563a97e169201bfd335bad1ddc220e882612e2480070c4a36ba3826242a48e12105e20bb6f717e2  libzmf-0.0.1.tar.xz"
