archrelease: copy trunk to extra-x86_64
[arch-packages.git] / powerdevil / trunk / PKGBUILD
blobe5dc0dcdd4dccd18b1634fee5d578fc09928ef74
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Maintainer: Antonio Rojas <arojas@archlinux.org>
3 # Contributor: Andrea Scarpino <andrea@archlinux.org>
5 pkgname=powerdevil
6 pkgver=5.25.0
7 pkgrel=2
8 pkgdesc='Manages the power consumption settings of a Plasma Shell'
9 arch=(x86_64)
10 url='https://kde.org/plasma-desktop/'
11 license=(LGPL)
12 depends=(plasma-workspace bluez-qt networkmanager-qt)
13 makedepends=(extra-cmake-modules kdoctools)
14 optdepends=('kinfocenter: for the Energy Information KCM' 'power-profiles-daemon: power profiles support')
15 groups=(plasma)
16 source=(https://download.kde.org/stable/plasma/$pkgver/$pkgname-$pkgver.tar.xz{,.sig}
17         https://invent.kde.org/plasma/powerdevil/-/commit/2ebe655d.patch)
18 sha256sums=('71b63a3135d60e2ad172cf72c2d095014b2ed97b8406124118ae6f410bb30fbb'
19             'SKIP'
20             '3f03b8807acd3035ab5e6f1a1a3236d3b0146485e96b877f8d66a7a752e2a2e6')
21 validpgpkeys=('E0A3EB202F8E57528E13E72FD7574483BB57B18D'  # Jonathan Esk-Riddell <jr@jriddell.org>
22               '0AAC775BB6437A8D9AF7A3ACFE0784117FBCE11D'  # Bhushan Shah <bshah@kde.org>
23               'D07BD8662C56CB291B316EB2F5675605C74E02CF'  # David Edmundson <davidedmundson@kde.org>
24               '1FA881591C26B276D7A5518EEAAF29B42A678C20') # Marco Martin <notmart@gmail.com>
25 options=(debug)
27 prepare() {
28   patch -d $pkgname-$pkgver -p1 < 2ebe655d.patch # Fix changing screen brightness
31 build() {
32   cmake -B build -S $pkgname-$pkgver \
33     -DCMAKE_INSTALL_LIBEXECDIR=lib \
34     -DBUILD_TESTING=OFF
35   cmake --build build
38 package() {
39   DESTDIR="$pkgdir" cmake --install build