source ../plasma.conf pkgname=powerdevil pkgver=${PVersion} pkgrel=1 pkgdesc='Manages the power consumption settings of a Plasma Shell' arch=('x86_64') url='https://projects.kde.org/projects/kde/workspace/powerdevil' license=('LGPL') depends=('plasma-workspace') makedepends=('extra-cmake-modules' 'kdoctools' 'python') checkdepends=("cmake") conflicts=('kdebase-workspace') groups=('plasma') options=("debug") source=("${PServer}/${pkgver}/${pkgname}-${PSubVersion}.tar.xz") sha256sums=( $(getSum ${pkgname} | head -n 1) ) prepare() { mkdir -p build } build() { cd build cmake_kf5 ../${pkgname}-${pkgver} \ -DPYTHON_EXECUTABLE=/usr/bin/python3 make } check() { cd build make test || return 0 } package() { cd build make DESTDIR="${pkgdir}" install }