subrepo:
  subdir:   "zenpower-dkms"
  merged:   "e9f3a7e"
upstream:
  origin:   "https://aur.archlinux.org/zenpower-dkms"
  branch:   "master"
  commit:   "e9f3a7e"
git-subrepo:
  version:  "0.4.1"
  origin:   "???"
  commit:   "???"
This commit is contained in:
Gabriel Ebner 2020-12-31 11:22:52 +01:00
parent 5028381041
commit 2f6ce21de3
5 changed files with 75 additions and 0 deletions

19
zenpower-dkms/.SRCINFO Normal file

@ -0,0 +1,19 @@
pkgbase = zenpower-dkms
pkgdesc = Linux kernel driver for reading sensors for AMD Zen family CPUs
pkgver = 0.1.12
pkgrel = 2
url = https://github.com/ocerman/zenpower
install = zenpower.install
arch = x86_64
arch = i686
license = GPL2
depends = dkms
provides = zenpower
conflicts = zenpower
source = zenpower-0.1.12.tar.gz::https://github.com/ocerman/zenpower/archive/v0.1.12.tar.gz
source = zenpower.conf
sha256sums = fd25dffbc0f0139e167aa8adecc61ce200f0395c6778302e236b4043f125e77d
sha256sums = 7bff3a5ea2c8b8abf56ce1d79b9724b1aea89e2564d244e09691070113d60f6a
pkgname = zenpower-dkms

12
zenpower-dkms/.gitrepo Normal file

@ -0,0 +1,12 @@
; DO NOT EDIT (unless you know what you are doing)
;
; This subdirectory is a git "subrepo", and this file is maintained by the
; git-subrepo command. See https://github.com/git-commands/git-subrepo#readme
;
[subrepo]
remote = https://aur.archlinux.org/zenpower-dkms
branch = master
commit = e9f3a7e231373b338786ecde1933b624ec41f4cb
parent = 5028381041a7d7099fa479e51423b3a1adb5917e
method = merge
cmdver = 0.4.1

36
zenpower-dkms/PKGBUILD Normal file

@ -0,0 +1,36 @@
# Maintainer: Yiyao Yu <yuydevel at protonmail dot com>
# Contributor: Benjamin Maisonnas <ben at wainei dot net>
# Author: Ondrej Čerman
_pkgname=zenpower
pkgname=zenpower-dkms
pkgver=0.1.12
pkgrel=2
pkgdesc='Linux kernel driver for reading sensors for AMD Zen family CPUs'
arch=('x86_64' 'i686')
url='https://github.com/ocerman/zenpower'
license=('GPL2')
depends=('dkms')
provides=('zenpower')
conflicts=('zenpower')
install=$_pkgname.install
source=("$_pkgname-$pkgver.tar.gz::https://github.com/ocerman/$_pkgname/archive/v$pkgver.tar.gz"
"$_pkgname.conf")
sha256sums=('fd25dffbc0f0139e167aa8adecc61ce200f0395c6778302e236b4043f125e77d'
'7bff3a5ea2c8b8abf56ce1d79b9724b1aea89e2564d244e09691070113d60f6a')
prepare() {
sed -e "s/@CFLGS@//" \
-e "s/@VERSION@/$pkgver/" \
-i "$srcdir/$_pkgname-$pkgver/dkms.conf"
}
package() {
install -Dm644 "$srcdir/$_pkgname-$pkgver/dkms.conf" "$pkgdir/usr/src/$_pkgname-$pkgver/dkms.conf"
install -Dm644 "$srcdir/$_pkgname-$pkgver/Makefile" "$pkgdir/usr/src/$_pkgname-$pkgver/Makefile"
install -Dm644 "$srcdir/$_pkgname-$pkgver/zenpower.c" "$pkgdir/usr/src/$_pkgname-$pkgver/zenpower.c"
install -Dm644 "$srcdir/$_pkgname.conf" "$pkgdir/usr/lib/modprobe.d/$_pkgname.conf"
}
# vim:set et ts=2 sw=2 tw=79

@ -0,0 +1 @@
blacklist k10temp

@ -0,0 +1,7 @@
post_install() {
echo 'The zenpower kernel module will be available on reboot. To load it now, run "modprobe -r k10temp && modprobe zenpower" as root'
}
post_remove() {
echo 'The zenpower kernel module will be removed on reboot. To remove it now, run "modprobe -r zenpower && modprobe k10temp" as root'
}