# Template file for 'cmocka'
pkgname=cmocka
version=1.1.7
revision=1
build_style=cmake
configure_args="-DUNIT_TESTING=ON"
# Generated build/CMakeDoxygenDefaults.cmake is broken:
# It contains a filename "\makeindex"
hostmakedepends="doxygen graphviz"
short_desc="Unit testing framework in C"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0"
homepage="https://cmocka.org/"
distfiles="https://cmocka.org/files/${version%.*}/cmocka-${version}.tar.xz"
checksum=810570eb0b8d64804331f82b29ff47c790ce9cd6b163e98d47a4807047ecad82

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