# Template file for 'kf6-kxmlgui'
pkgname=kf6-kxmlgui
version=6.6.0
revision=1
build_style=cmake
hostmakedepends="extra-cmake-modules qt6-tools qt6-base
 gettext"
makedepends="kf6-kconfig-devel kf6-kconfigwidgets-devel qt6-base-private-devel
 kf6-kitemviews-devel kf6-kiconthemes-devel kf6-kglobalaccel-devel"
short_desc="KDE Framework for managing menu and toolbar actions"
maintainer="John <me@johnnynator.dev>"
license="LGPL-2.1-or-later"
homepage="https://invent.kde.org/frameworks/kxmlgui"
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname#kf6-}-${version}.tar.xz"
checksum=647fc7510d33b9de9196fd2c8f6f6a114dd18559ee21aab7cf47f687b8ae0452

do_check() {
	cd build
	# disable failing test
	ctest -E "ktoolbar_unittest|kxmlgui_unittest"
}

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