diff options
author | Marc Rozanc | 2016-03-16 22:40:49 +0100 |
---|---|---|
committer | Marc Rozanc | 2016-03-16 22:40:49 +0100 |
commit | ccd82a6ceb605670da8cd4dd362e20e313acb94f (patch) | |
tree | 35c1cb0653e1750c96fed147624539e5876b3f58 | |
parent | 6b21f8cea49be5eb84eda75a42a2fb035492c501 (diff) | |
download | aur-ccd82a6ceb605670da8cd4dd362e20e313acb94f.tar.gz |
Updates the package to Arch's new DKMS conventions
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 2 | ||||
-rw-r--r-- | tuxedo-wmi-dkms.install | 23 |
3 files changed, 11 insertions, 18 deletions
@@ -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 @@ -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 9cee95462e8a..cdc111c76f79 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 } |