summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAnthony Wang2021-06-19 18:54:39 -0500
committerAnthony Wang2021-06-19 18:54:39 -0500
commit3e9f8ab23e46cff6b935ab0686979af2fc4d69f5 (patch)
treeb550437069815544ae72cd2d637b6299a81eb39b /PKGBUILD
downloadaur-3e9f8ab23e46cff6b935ab0686979af2fc4d69f5.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD36
1 files changed, 36 insertions, 0 deletions
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