# Template file for 'libwps'
pkgname=libwps
version=0.4.14
revision=1
build_style=gnu-configure
configure_args="--disable-werror"
hostmakedepends="pkg-config"
makedepends="librevenge-devel"
short_desc="Library for importing Microsoft Works documents"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="MPL-2.0, LGPL-2.1-or-later"
homepage="https://sourceforge.net/p/libwps/wiki/Home/"
distfiles="${SOURCEFORGE_SITE}/libwps/libwps-${version}.tar.xz"
checksum=365b968e270e85a8469c6b160aa6af5619a4e6c995dbb04c1ecc1b4dd13e80de

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

libwps-tools_package() {
	short_desc+=" - tools"
	pkg_install() {
		vmove usr/bin
	}
}
