summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6ca47a3a1ae9607b57f8c2a9da87e33ccfb9bac0 (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
# Maintainer: Francisco Soto <ebobby(at)ebobby(dot)org>

pkgname=iuvolt
pkgver=45
pkgrel=1
pkgdesc="Experimental script to undervolt Intel CPUs"
arch=('any')
url="https://github.com/rigred/iuvolt"
license=('GPL')
install="${pkgname}.install"
depends=('bc' 'msr-tools')
source=(
  'iuvolt::git+https://github.com/rigred/iuvolt.git#commit=ffbe9cc2965f71b2c4923f699c919f1d99a51233'
  'iuvolt.cfg'
  )
sha1sums=(
  'SKIP'
  'SKIP'
)

pkgver() {
  cd ${srcdir}/${pkgname}
  git rev-list --count HEAD
}

package() {
  # Install script
  install -Dm755 ${srcdir}/${pkgname}/iuvolt ${pkgdir}/usr/bin/iuvolt

  # Install systemd unit files
  install -Dm644 ${srcdir}/${pkgname}/iuvolt.service ${pkgdir}/usr/lib/systemd/system/iuvolt.service

  # Install config
  install -Dm644 ${srcdir}/iuvolt.cfg ${pkgdir}/etc/iuvolt.cfg
}