# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=powerdevil pkgver=5.17.2 pkgrel=0 pkgdesc="Manages the power consumption settings of a Plasma Shell" arch="all" 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" 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 CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { cd "$builddir"/build DESTDIR="$pkgdir" make install } sha512sums="c6e243cd1372ea60ced72ba8c061e997977ca6d17ec39116ed9643fdb8b3fb488cd5594fefcb06f17543c2e0258018863d4c765558cb9479ec1f108051925ad7 powerdevil-5.17.2.tar.xz"