diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 39 |
1 files changed, 21 insertions, 18 deletions
@@ -1,29 +1,32 @@ # Maintainer: vinibali <vinibali1 at gmail dot com> pkgname=amdctl-git -pkgver=0.3 +pkgver=0.6.1.r2.g146dcc5 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" + Currently supported families are: 10h, 11h, 12h, 14h, 15h, 16h, 17h, 19h" arch=(i686 x86_64) url="https://github.com/kevinlekiller/amdctl" -license=('GPLv3') -depends=() -source=(https://github.com/kevinlekiller/amdctl/archive/v"${pkgver}".zip) -md5sums=(f152b897230bebf4c31ae9c2aae2e61c) +license=(GPL3) +depends=(glibc) +makedepends=(git) +source=("git+https://github.com/kevinlekiller/amdctl.git" + 'amdctl.conf') +sha256sums=('SKIP' + 'a3e2ebec196914ff59fec2683bd2ce900d767979620411cd724138e1ca42701c') -build() - { - cd "${srcdir}"/amdctl-${pkgver} - make - } +pkgver() { + cd "${srcdir}/amdctl" + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} -package() { +build() { + cd "${srcdir}/amdctl" + make +} - install -Dm755 "${srcdir}"/amdctl-${pkgver}/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 +package() { + cd "${srcdir}/amdctl" + install -Dm755 amdctl -t "${pkgdir}/usr/bin/" + install -Dm755 ../amdctl.conf -t "${pkgdir}/etc/modules-load.d/" } |