summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnthony Wang2021-06-19 18:54:39 -0500
committerAnthony Wang2021-06-19 18:54:39 -0500
commit3e9f8ab23e46cff6b935ab0686979af2fc4d69f5 (patch)
treeb550437069815544ae72cd2d637b6299a81eb39b
downloadaur-3e9f8ab23e46cff6b935ab0686979af2fc4d69f5.tar.gz
Initial commit
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD36
-rw-r--r--zenpower3.conf1
-rw-r--r--zenpower3.install7
4 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..cd60dc54f59
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = zenpower3-dkms
+ pkgdesc = Linux kernel driver for reading sensors for AMD Zen family CPUs
+ pkgver = 0.1.13
+ pkgrel = 1
+ url = https://github.com/Ta180m/zenpower3
+ install = zenpower3.install
+ arch = x86_64
+ arch = i686
+ license = GPL2
+ depends = dkms
+ provides = zenpower
+ conflicts = zenpower
+ source = zenpower3-0.1.13.tar.gz::https://github.com/Ta180m/zenpower3/archive/v0.1.13.tar.gz
+ source = zenpower3.conf
+ sha256sums = 17e9084adf7a93fc88d4639ec8b5014d21b5382ac00083117b1a6d52024c325d
+ sha256sums = 7bff3a5ea2c8b8abf56ce1d79b9724b1aea89e2564d244e09691070113d60f6a
+
+pkgname = zenpower3-dkms
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3b313f6bec9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Yiyao Yu <yuydevel at protonmail dot com>
+# Contributor: Benjamin Maisonnas <ben at wainei dot net>
+# Author: Ondrej ńĆerman
+
+_pkgname=zenpower3
+pkgname=zenpower3-dkms
+pkgver=0.1.13
+pkgrel=1
+pkgdesc='Linux kernel driver for reading sensors for AMD Zen family CPUs'
+arch=('x86_64' 'i686')
+url='https://github.com/Ta180m/zenpower3'
+license=('GPL2')
+depends=('dkms')
+provides=('zenpower')
+conflicts=('zenpower')
+install=$_pkgname.install
+source=("$_pkgname-$pkgver.tar.gz::https://github.com/Ta180m/$_pkgname/archive/v$pkgver.tar.gz"
+ "$_pkgname.conf")
+sha256sums=('17e9084adf7a93fc88d4639ec8b5014d21b5382ac00083117b1a6d52024c325d'
+ '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
diff --git a/zenpower3.conf b/zenpower3.conf
new file mode 100644
index 00000000000..214d9605e01
--- /dev/null
+++ b/zenpower3.conf
@@ -0,0 +1 @@
+blacklist k10temp
diff --git a/zenpower3.install b/zenpower3.install
new file mode 100644
index 00000000000..0db7c91c39f
--- /dev/null
+++ b/zenpower3.install
@@ -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'
+}