# Template file for 'extra-cmake-modules'
# group=kde-frameworks
pkgname=extra-cmake-modules
version=6.29.0
revision=1
build_style=cmake
configure_args="-DBUILD_HTML_DOCS=ON -DBUILD_TESTING=ON"
hostmakedepends="python3-Sphinx qt6-tools qt6-base qt6-plugin-sqlite"
depends="cmake"
checkdepends="qt5-declarative-devel qt6-base-devel"
short_desc="Extra modules and scripts for CMake"
maintainer="John <me@johnnynator.dev>"
license="BSD-3-Clause"
homepage="https://invent.kde.org/frameworks/extra-cmake-modules"
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=aaf2542edd5c5af9ea56a46468892d38a7978af65f0f3518379fa8ce66cad2b8
python_version=3

do_check() {
	cd build
	# expects to be in frameworks/extra-cmake-modules
	ctest ${makejobs} -E 'KDEFetchTranslations'
}

post_install() {
	vlicense COPYING-CMAKE-SCRIPTS
}
