# Template file for 'kf6-grantleetheme'
pkgname=kf6-grantleetheme
version=24.08.1
revision=1
build_style=cmake
configure_args="-DKDE_INSTALL_QTPLUGINDIR=lib/qt6/plugins"
hostmakedepends="extra-cmake-modules qt6-base python3
 gettext kf6-kcoreaddons"
makedepends="kf6-ki18n-devel kf6-kiconthemes-devel kf6-knewstuff-devel
 kf6-kxmlgui-devel kf6-ktexttemplate-devel"
short_desc="Library for Grantlee theming support"
maintainer="John <me@johnnynator.dev>"
license="GPL-2.0-or-later, LGPL-2.1-or-later"
homepage="https://community.kde.org/KDE_PIM"
distfiles="${KDE_SITE}/release-service/${version}/src/grantleetheme-${version}.tar.xz"
checksum=a299b931db753d060b5f44a3fc7c8983dbbc83c331593519c7efe96b902af172

do_check() {
	cd build
	ctest -E "grantleetheme-grantleethemetest"
}

kf6-grantleetheme-devel_package() {
	depends="${sourcepkg}>=${version}_${revision} ${makedpends}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/cmake
		vmove "usr/lib/*.so"
	}
}
