summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8f85f81afba5b001f840878293edb9fd6cbaaed1 (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
pkgname=power-profiles-daemon
pkgver=0.8.1
pkgrel=1
pkgdesc="Makes power profiles handling available over D-Bus"
url="https://gitlab.freedesktop.org/hadess/power-profiles-daemon"
license=(GPL3)
arch=(x86_64)
depends=('libgudev' 'systemd')
makedepends=('git' 'meson')
checkdepends=('umockdev')
_commit=c4837945927c10ea82ec1c76bead6e5601a8e64d
source=("git+https://gitlab.freedesktop.org/hadess/power-profiles-daemon.git#commit=$_commit")
b2sums=('SKIP')

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

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

check() {
  meson test -C build
}

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