# Template file for 'libmwaw'
pkgname=libmwaw
version=0.3.23
revision=1
build_style=gnu-configure
configure_args="--disable-werror"
hostmakedepends="pkg-config doxygen"
makedepends="boost-headers zlib-devel librevenge-devel"
short_desc="Import library for legacy Mac documents"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="LGPL-2.1-or-later, MPL-2.0"
homepage="https://sourceforge.net/projects/libmwaw/"
distfiles="${SOURCEFORGE_SITE}/libmwaw/libmwaw/${pkgname}-${version}/${pkgname}-${version}.tar.xz"
checksum=ac3590f691a2904eb8c7dc8b757b8a29f125f592449e421459ae8fa928b399eb

libmwaw-devel_package() {
	short_desc+=" - development files"
	depends="${sourcepkg}>=${version}_${revision} librevenge-devel"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.so"
		vmove usr/lib/pkgconfig
	}
}

libmwaw-doc_package() {
	short_desc+=" - documentation"
	depends="${sourcepkg}>=${version}_${revision}"
	pkg_install() {
		vmove usr/share/doc
	}
}
