From 626ebb7babad32b08c052d98339e475478d468e5 Mon Sep 17 00:00:00 2001 From: jc_gargma Date: Tue, 11 Aug 2020 04:22:51 -0700 Subject: Initial commit --- PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..2f85527 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: jc_gargma +# Maintainer (AUR): vinibali + +# # 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.1 +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=('18a2f358b57c9436d4e0344eb43a51c34a7e0b41f90aecb8286c7663e5734bc2') + +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 +} -- cgit v1.2.1