# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=libksysguard pkgver=5.18.3 pkgrel=0 pkgdesc="KDE system monitor library" arch="all !armhf" url="https://www.kde.org/workspaces/plasmadesktop/" license="LGPL-2.1-or-later AND (GPL-2.0-only OR GPL-3.0-only)" depends_dev="qt5-qtwebchannel-dev kcoreaddons-dev kconfig-dev ki18n-dev kwindowsystem-dev kcompletion-dev kauth-dev kwidgetsaddons-dev kiconthemes-dev kconfigwidgets-dev kservice-dev kglobalaccel-dev kio-dev plasma-framework-dev zlib-dev" makedepends="$depends_dev extra-cmake-modules" checkdepends="xvfb-run" source="https://download.kde.org/stable/plasma/$pkgver/libksysguard-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-lang" build() { cmake -B build \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib make -C build } check() { cd build # processtest requires working OpenGL CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "processtest" } package() { DESTDIR="$pkgdir" make -C build install } sha512sums="7e7e4971008407d763f58260fb06d91eff58aad4380358bda61572b5d8e55bbddcff5155bd1f40f7f8463874013957f7aa7f3a17dcfe2b47f911302218226cd5 libksysguard-5.18.3.tar.xz"