# Template file for 'cppunit'
pkgname=cppunit
version=1.14.0
revision=2
build_style=gnu-configure
configure_args="--disable-werror"
hostmakedepends="doxygen graphviz"
short_desc="C++ Port of JUnit framework"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="LGPL-2.1-or-later"
homepage="https://freedesktop.org/wiki/Software/cppunit/"
distfiles="http://dev-www.libreoffice.org/src/cppunit-${version}.tar.gz"
checksum=3d569869d27b48860210c758c4f313082103a5e58219a7669b52bfd29d674780

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

cppunit-doc_package() {
	noarch=yes
	short_desc+=" - documentation"
	pkg_install() {
		vmove usr/share/cppunit
		vmove usr/share/doc
	}
}
