summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD2
-rw-r--r--tuxedo-wmi-dkms.install23
3 files changed, 11 insertions, 18 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9a5867dfbe2..5af5586d9f3 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,9 @@
+# Generated by mksrcinfo v8
+# Wed Mar 16 21:39:03 UTC 2016
pkgbase = tuxedo-wmi-dkms
pkgdesc = A reverse engineering driver for the Clevo P150EM/P170EM/P150SM/P157SM/P170SM/P177SM backlight keyboard, by Christoph Jaeger (DKMS version)
pkgver = 1.5.1
- pkgrel = 1
+ pkgrel = 2
url = http://www.linux-onlineshop.de/forum/index.php?page=Thread&threadID=26&s=82130b57e71bd5b6ea569abc1424025c6f8d412d
install = tuxedo-wmi-dkms.install
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index f053a462158..312756ca4e5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
_modname="tuxedo-wmi"
pkgname="${_modname}-dkms"
pkgver="1.5.1"
-pkgrel=1
+pkgrel=2
pkgdesc='A reverse engineering driver for the Clevo P150EM/P170EM/P150SM/P157SM/P170SM/P177SM backlight keyboard, by Christoph Jaeger (DKMS version)'
arch=('any')
license=('GPL')
diff --git a/tuxedo-wmi-dkms.install b/tuxedo-wmi-dkms.install
index 9cee95462e8..cdc111c76f7 100644
--- a/tuxedo-wmi-dkms.install
+++ b/tuxedo-wmi-dkms.install
@@ -1,20 +1,11 @@
-post_install() {
- dkms install -m tuxedo-wmi -v ${1%%-*}
-}
-
-pre_upgrade() {
- local curver=${2%%-*}
- # $2 is unset due to a bug. See, https://bugs.archlinux.org/task/32278
- # Query current version using pacman as fallback
- [ -n "$curver" ] || curver=$(pacman -Q tuxedo-wmi-dkms | cut -d' ' -f2)
- pre_remove $curver
-}
+#!/bin/bash
+# arg 1: the new package version
+# arg 2: the old package version
post_upgrade() {
- post_install ${1%%-*}
-}
-
-pre_remove() {
- dkms remove -m tuxedo-wmi -v ${1%%-*} --all
+ if (( $(vercmp $2 1.5.1-2) < 0 )); then
+ echo '==> Since version 1.5.1-2 kernel modules are loaded at boot by systemd-modules-load.'
+ echo '==> Read modules-load.d man page to disable them.'
+ fi
}