# Template file for 'libksysguard'
pkgname=libksysguard
version=5.20.2
revision=1
build_style=cmake
hostmakedepends="extra-cmake-modules gettext kauth qt5-host-tools qt5-qmake"
makedepends="plasma-framework-devel qt5-webchannel-devel knewstuff-devel
 kio qt5-tools-devel"
short_desc="KDE libksysguard"
maintainer="John <me@johnnynator.dev>"
license="LGPL-2.1-or-later"
homepage="https://invent.kde.org/plasma/libksysguard"
distfiles="${KDE_SITE}/plasma/${version}/${pkgname}-${version}.tar.xz"
checksum=9f57a3719d665df6d6b3c494a62bb7d60c79b06f30c0e9c75eb03568d2046d71

# Liberation: Removed webengine related code

pre_check() {
	export QT_QPA_PLATFORM=offscreen
}

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