# Template file for 'kf6-kconfigwidgets'
# group=kde-frameworks
pkgname=kf6-kconfigwidgets
version=6.29.0
revision=1
build_style=cmake
hostmakedepends="extra-cmake-modules qt6-tools qt6-base
 gettext kf6-kconfig-devel"
makedepends="kf6-kcodecs-devel kf6-kcolorscheme-devel kf6-kconfig-devel
 kf6-kcoreaddons-devel kf6-kwidgetsaddons-devel qt6-base-private-devel"
short_desc="Widgets for KConfig"
maintainer="John <me@johnnynator.dev>"
license="LGPL-2.1-or-later"
homepage="https://invent.kde.org/frameworks/kconfigwidgets"
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname#kf6-}-${version}.tar.xz"
checksum=449d7b4df04209669b8ad00c74fbf7e0d14cb103fbfa12a642995057cc56b35d

# stage builds
makedepends+=" kf6-base"
shlib_requires="KDE_Frameworks.${version%.*}"

do_check() {
	cd build
	# disable failing tests
	ctest -E "kstandardactiontest"
}

kf6-kconfigwidgets-devel_package() {
	depends="${sourcepkg}>=${version}_${revision} kf6-kcodecs-devel
	 kf6-kconfig-devel kf6-kwidgetsaddons-devel kf6-kcolorscheme-devel
	 qt6-base-devel"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/cmake
		vmove "usr/lib/*.so"
	}
}
