summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c4417ba0618a76b21db5a91bee74325a580a6297 (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
# Maintainer: xsmile <>

pkgname=ryzen-ppd
pkgver=0.3
pkgrel=2
pkgdesc='Power management daemon for AMD Ryzen Mobile processors'
arch=(any)
url=https://github.com/xsmile/ryzen-ppd
license=(GPL3)
makedepends=(python-setuptools)
depends=(python-dbus-next python-gobject ryzenadj)
optdepends=('acpi_call: for setting ACPI platform profiles')
backup=(etc/ryzen-ppd.ini)
install=ryzen-ppd.install
source=($pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz)
sha256sums=('6119af8828ecbfed23d77efc3bc78b9844908f8211bef4980a84f99aec795f20')

build() {
  cd "$pkgname-$pkgver"
  python setup.py build
}

package() {
  cd "$pkgname-$pkgver"
  install -Dm644 $pkgname.ini -t "$pkgdir"/etc/
  install -Dm644 scripts/systemd/$pkgname.service -t "$pkgdir"/usr/lib/systemd/system/
  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}