# Template file for 'libwpd'
pkgname=libwpd
version=0.10.2
revision=2
build_style=gnu-configure
short_desc="Library for importing WordPerfect documents"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="MPL-2.0, LGPL-2.1"
makedepends="librevenge-devel"
hostmakedepends="pkg-config"
homepage="http://libwpd.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/libwpd/libwpd-${version}.tar.xz"
checksum=323f68beaf4f35e5a4d7daffb4703d0566698280109210fa4eaa90dea27d6610

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

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