summaryrefslogtreecommitdiff
path: root/PKGBUILD
blob: 649bacd1c1b84bc7ced8c9166ea8eb2faf1571ac (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: jc_gargma <jc_gargma@iserlohn-fortress.net>
# Maintainer (AUR): vinibali <vinibali1 at gmail dot com>

# # I maintain this because:
# AUR version uses doesn't use pkgname for source package
# AUR version uses zip archive
# AUR version uses MD5 checksums

pkgname=amdctl
pkgver=0.2
pkgrel=1
pkgdesc="Set P-State voltages and clock speeds on recent AMD CPUs on Linux.
Currently supported families are: 10h, 11h, 12h, 14h, 15h, 16h, 17h"
arch=(i686 x86_64)
url="https://github.com/kevinlekiller/amdctl"
license=('GPLv3')
depends=()
source=($pkgname-$pkgver.tar.gz::https://github.com/kevinlekiller/amdctl/archive/v${pkgver}.tar.gz)
sha256sums=('4ee0b791006f443c4aafb6c5270f8614f15ec5cdad9ca1e48c26b749d23096ed')

build() 
  {
  cd "${srcdir}"/amdctl-0.1
  make
  }

package() {

  install -Dm755 "${srcdir}"/amdctl-0.1/amdctl "${pkgdir}"/usr/bin/amdctl
  mkdir "${pkgdir}"/etc/
  mkdir "${pkgdir}"/etc/modules-load.d
  touch "${pkgdir}"/etc/modules-load.d/amdctl.conf
  echo "cpuid" > "${pkgdir}"/etc/modules-load.d/amdctl.conf
  echo "msr" >> "${pkgdir}"/etc/modules-load.d/amdctl.conf
}