summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2e82d4b06b517dfac87c390c74621fac26c07faa (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
# Maintainer: tmikey

_reponame=pid_fan_controller
pkgname=pid-fan-controller
pkgver=1.2
pkgrel=1
pkgdesc="PID fan controller with Python3"
arch=('any')
url="https://github.com/ThunderMikey/pid_fan_controller"
license=('GPL3')
depends=('python3' 'python-simple-pid' 'python-pyaml')
provides=("$pkgname")
source=(https://github.com/ThunderMikey/$_reponame/archive/$pkgver.tar.gz)
md5sums=('80ae2350f50f00fe9df8bb8c3cc3d6e9')
backup=('etc/pid_fan_controller_config.yaml')

package() {
  cd "$_reponame-$pkgver"
  install -m 644 -Dt "$pkgdir/usr/lib/systemd/system/" \
    pid-fan-controller.service \
    pid-fan-controller-sleep-hook.service \
    set-manual-fan-speed@.service
  install -m 644 -Dt "$pkgdir/etc/" pid_fan_controller_config.yaml
  install -m 755 -Dt "$pkgdir/usr/share/$pkgname/" \
    main_loop.py \
    pid_fan_controller.py \
    override_auto_fan_control.py \
    set_manual_fan_speed.py
}

# vim:set ts=2 sw=2 et: