# Template file for 'libplasma'
pkgname=libplasma
version=6.2.0
revision=1
build_style=cmake
configure_args="-DKF6_HOST_TOOLING=/usr/lib/cmake
 -DKDE_INSTALL_QMLDIR=lib/qt6/qml
 -DKDE_INSTALL_QTPLUGINDIR=lib/qt6/plugins"
hostmakedepends="extra-cmake-modules qt6-base qt6-tools qt6-wayland-tools
 qt6-declarative-host-tools wayland-devel gettext pkg-config
 kf6-kconfig kf6-kirigami-devel kf6-kcmutils
 kf6-kpackage"
makedepends="qt6-base-private-devel qt6-declarative-devel qt6-svg-devel
 kf6-kcmutils-devel kf6-ksvg-devel kf6-ki18n-devel kf6-kwindowsystem-devel
 kf6-kpackage-devel kf6-kiconthemes-devel kf6-kguiaddons-devel kf6-karchive-devel
 kf6-kconfigwidgets-devel plasma-activities-devel wayland-devel
 plasma-wayland-protocols qt6-wayland-devel"
short_desc="Plasma library and runtime components"
maintainer="John <me@johnnynator.dev>"
license="GPL-3.0-or-later"
homepage="https://invent.kde.org/plasma/libplasma"
distfiles="${KDE_SITE}/plasma/${version}/${pkgname}-${version}.tar.xz"
checksum=756a1cb01513ca04906a079cc2802dca6f4f610f319261919b3d5e25bd4fda98

do_check() {
	cd build
	# disable failing tests
	ctest -E "plasma-dialogstatetest|dialognativetest|plasma-dialogqmltest|plasma-themetest|bug485688test|plasma-pluginloadertest"
}

libplasma-devel_package() {
	depends="${sourcepkg}>=${version}_${revision} qt6-declarative-devel
	 qt6-base-devel kf6-kpackage-devel kf6-kwindowsystem-devel"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/cmake
		vmove "usr/lib/*.so"
	}
}
