summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormoson-mo2021-01-02 11:44:55 +0100
committermoson-mo2021-01-02 11:44:55 +0100
commitf66724d0dbeeca1074393d2a100b32bfd7ab3801 (patch)
tree68901ad632758d163fe59b9fa67d1f6718aa8067
parent093456ca9acc82cd3bb86862805b5d4fa5f24e67 (diff)
downloadaur-f66724d0dbeeca1074393d2a100b32bfd7ab3801.tar.gz
Added install script
-rw-r--r--.SRCINFO2
-rw-r--r--.gitignore3
-rw-r--r--PKGBUILD5
-rw-r--r--ryzen_smu.install7
4 files changed, 13 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0fe879602e2d..8c6536f8e9ed 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = ryzen_smu-dkms-git
pkgdesc = A Linux kernel driver that exposes access to the SMU (System Management Unit) for certain AMD Ryzen Processors
- pkgver = 107.c0f7746
+ pkgver = 110.5033da9
pkgrel = 1
url = https://gitlab.com/leogx9r/ryzen_smu
arch = x86_64
diff --git a/.gitignore b/.gitignore
index fd5a94e2ef41..33d4f9406edc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,4 +3,5 @@
!PKGBUILD
!dkms.conf
!ryzen_smu.conf
-!.SRCINFO \ No newline at end of file
+!.SRCINFO
+!ryzen_smu.install \ No newline at end of file
diff --git a/PKGBUILD b/PKGBUILD
index aa745031bf56..4a5bfd4ec1de 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
_pkgbase=ryzen_smu
pkgname=ryzen_smu-dkms-git
-pkgver=107.c0f7746
+pkgver=110.5033da9
pkgrel=1
pkgdesc="A Linux kernel driver that exposes access to the SMU (System Management Unit) for certain AMD Ryzen Processors"
arch=('x86_64')
@@ -12,6 +12,7 @@ license=('GPL2')
depends=('dkms')
makedepends=('git' 'linux-headers')
provides=('ryzen_smu')
+install=$_pkgbase.install
source=("$_pkgbase::git+$url.git"
"dkms.conf"
@@ -39,4 +40,4 @@ package() {
-i "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf
install -Dm644 ${srcdir}/${_pkgbase}.conf "${pkgdir}"/usr/lib/depmod.d/${_pkgbase}.conf
-}
+} \ No newline at end of file
diff --git a/ryzen_smu.install b/ryzen_smu.install
new file mode 100644
index 000000000000..29dcff19237d
--- /dev/null
+++ b/ryzen_smu.install
@@ -0,0 +1,7 @@
+post_install() {
+ echo -e "\nReboot or load module with 'modprobe ryzen_smu'\n"
+}
+
+post_upgrade() {
+ post_install
+} \ No newline at end of file