# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=powerdevil pkgver=5.20.3 pkgrel=0 pkgdesc="Manages the power consumption settings of a Plasma Shell" # armhf blocked by extra-cmake-modules # s390x blocked by libksysguard arch="all !armhf !s390x" url="https://www.kde.org/workspaces/plasmadesktop/" license="GPL-2.0-or-later AND LGPL-2.0-or-later AND (LGPL-2.1-only OR LGPL-3.0-only)" depends="upower" depends_dev="qt5-qtbase-dev qt5-qtx11extras-dev kactivities-dev kauth-dev kidletime-dev kconfig-dev kdbusaddons-dev solid-dev ki18n-dev kglobalaccel-dev kio-dev knotifyconfig-dev kwayland-dev kcrash-dev knotifications-dev libkscreen-dev plasma-workspace-dev bluez-qt-dev networkmanager-qt-dev eudev-dev" makedepends="$depends_dev extra-cmake-modules kdoctools-dev" source="https://download.kde.org/stable/plasma/$pkgver/powerdevil-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-libs $pkgname-doc $pkgname-lang" build() { cmake -B build \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib cmake --build build } check() { cd build CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { DESTDIR="$pkgdir" cmake --build build --target install } sha512sums="5fce022b73e38bbf6098de86b8ede2bffd571cce9985f18f57c2ddc1e2a2e3bd8d1fe4ced9461f17f68b4b68a39e0b6210a75d86f7f41abc916362ebd25279c4 powerdevil-5.20.3.tar.xz"