# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=libksysguard pkgver=5.17.0 pkgrel=0 pkgdesc="KDE system monitor library" arch="all" 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="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="299185d21779e307ae25740885e1fe8c09b499bd7366d567e35c14d4d188fafbe22b99d66dd0a09cce776175a0c11913c15751cd4b7db91e87cf5160caf09820 libksysguard-5.17.0.tar.xz"