summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8dc8913af9844ff57a3009cfef4993e89d8629f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Contributor: tinywrkb <tinywrkb@gmail.com>

pkgname=power-profiles-daemon
pkgver=0.9.0
pkgrel=3
pkgdesc="Makes power profiles handling available over D-Bus"
url="https://gitlab.freedesktop.org/hadess/power-profiles-daemon"
license=(GPL3)
arch=(x86_64)
depends=('python' 'upower')
makedepends=('git' 'meson')
checkdepends=('python-dbusmock' 'python-isort' 'python-mccabe' 'python-pylint' 'umockdev')
_commit=30d85f1e9e274e75add4ecaa46795126acafb29d # tags/0.9.0
source=("git+https://gitlab.freedesktop.org/hadess/power-profiles-daemon.git#commit=$_commit")
b2sums=('SKIP')

pkgver() {
  cd $pkgname
  git describe --tags | sed 's/-/+/g'
}

 prepare() {
   cd $pkgname
   # fixes pylint test
   git cherry-pick -n 42b3341b29047489ea5eecaf8cf7d6e74a228891
 }

build() {
  arch-meson $pkgname build
  meson compile -C build
}

check() {
  meson test -C build
}

package() {
  DESTDIR="$pkgdir" meson install -C build
}