summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 048cb7b8845458a51afb76bcb46ac56abe8a4bf3 (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=44
pkgrel=1
pkgdesc="Experimental script to undervolt Intel CPUs"
arch=('any')
url="https://github.com/tiziw/iuvolt"
license=('GPL')
install="${pkgname}.install"
depends=('bc' 'msr-tools')
source=(
  'iuvolt::git+https://github.com/tiziw/iuvolt.git#commit=5e3599798177ac16e6bab4e2ad5c81f6690481c3'
  'iuvolt.cfg'
  )
sha1sums=(
  'SKIP'
  'ed5ee6f4a93c14c28b3aa505f0d400d571db4cfe'
)

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
}