# Template file for 'kf6-qqc2-desktop-style'
# group=kde-frameworks
pkgname=kf6-qqc2-desktop-style
version=6.28.0
revision=1
build_style=cmake
configure_args="-DKDE_INSTALL_QMLDIR=lib/qt6/qml
 -DKDE_INSTALL_QTPLUGINDIR=lib/qt6/plugins"
hostmakedepends="extra-cmake-modules qt6-tools qt6-base pkg-config
 qt6-declarative-host-tools kf6-kconfig"
makedepends="kf6-kcolorscheme-devel kf6-kiconthemes-devel kf6-kirigami-devel
 kf6-kconfig-devel qt6-base-devel qt6-declarative-devel"
short_desc="Qt Quick Controls 2: Desktop Style"
maintainer="John <me@johnnynator.dev>"
license="LGPL-2.1-or-later"
homepage="https://invent.kde.org/frameworks/qqc2-desktop-style"
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname#kf6-}-${version}.tar.xz"
checksum=8748d01f401cb16a34adbdf568b2bde2cc1820f82c38249fdec11b66d9da97d1

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

do_check() {
	cd build
	ctest -E "animationspeedmodifiertest|TextFieldContextMenuTest"
}

kf6-qqc2-desktop-style-devel_package() {
	depends="${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/lib/cmake
	}
}
