# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=libksysguard pkgver=5.17.5 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" prepare() { default_prepare mkdir "$builddir"/build } build() { cd "$builddir"/build cmake "$builddir" \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib make } check() { cd "$builddir"/build # processtest requires working OpenGL CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "processtest" } package() { cd "$builddir"/build DESTDIR="$pkgdir" make install } sha512sums="15e12044bca64b5019c30e3e009a4533b03a19627e2ca8ce6e0fffe3c6554f57ae7b86d82be18d92edd7c6abfff9d123462915f44ec33f796f7e6b8b3e2491ba libksysguard-5.17.5.tar.xz"