summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 88bd703d06ca0b1458014cbcb1966e13e5158c4e (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
pkgname=power-profiles-daemon-tlp-git
_pkgname=power-profiles-daemon
pkgver=0.13+3+gbe34793
pkgrel=1
pkgdesc="Makes power profiles handling available over D-Bus, with TLP driver"
url="https://github.com/rongronggg9/power-profiles-daemon"
license=(GPL3)
arch=(x86_64)
depends=('systemd' 'upower')
optdepends=('tlp: TLP power profiles driver')
makedepends=('git' 'meson')
checkdepends=('python-dbusmock' 'python-pylint' 'umockdev')
provides=('power-profiles-daemon')
conflicts=('power-profiles-daemon' 'power-profiles-daemon-git')
source=("git+https://github.com/rongronggg9/power-profiles-daemon.git")
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
}