diff options
author | Marc Rozanc | 2016-03-16 21:39:31 +0100 |
---|---|---|
committer | Marc Rozanc | 2016-03-16 21:39:31 +0100 |
commit | 32c6db7e770fc6fb17767215c4a9e962d6174007 (patch) | |
tree | 9c22b83f18779973b53c9be89ef1ac58f0999b5a | |
parent | 325dac6e2ac7ee5d9efbe7e07bd24360afb74d55 (diff) | |
download | aur-32c6db7e770fc6fb17767215c4a9e962d6174007.tar.gz |
Updates the package to Arch's new DKMS conventions
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 4 | ||||
-rw-r--r-- | clevo-xsm-wmi-dkms.install | 23 |
3 files changed, 15 insertions, 20 deletions
@@ -1,9 +1,9 @@ # Generated by mksrcinfo v8 -# Fri Jan 1 15:11:48 UTC 2016 +# Wed Mar 16 20:33:31 UTC 2016 pkgbase = clevo-xsm-wmi-dkms pkgdesc = A reverse engineering driver for the Clevo SM series backlight keyboard (DKMS version) pkgver = 0.8 - pkgrel = 1 + pkgrel = 2 url = https://bitbucket.org/lynthium/clevo-xsm-wmi install = clevo-xsm-wmi-dkms.install arch = i686 @@ -11,6 +11,8 @@ pkgbase = clevo-xsm-wmi-dkms license = GPL depends = dkms depends = linux-headers + depends = gcc + depends = make provides = clevo-xsm-wmi conflicts = clevo-xsm-wmi conflicts = tuxedo-wmi @@ -18,6 +20,8 @@ pkgbase = clevo-xsm-wmi-dkms options = !emptydirs source = clevo-xsm-wmi-0.8.src.tar.gz::https://bitbucket.org/lynthium/clevo-xsm-wmi/get/v0.8.tar.gz source = dkms.conf.in + sha256sums = 0948133273d088a8610cac85d06287022cc847da7570d6d9d3f1f906352d569c + sha256sums = b6877cbd6abfb5ea24079ad740b985478ddd385062a02a45a7bce493576993de pkgname = clevo-xsm-wmi-dkms @@ -4,7 +4,7 @@ _modname='clevo-xsm-wmi' pkgname="${_modname}-dkms" pkgver='0.8' _pkgtag='ac1cf19e290b' -pkgrel=1 +pkgrel=2 pkgdesc='A reverse engineering driver for the Clevo SM series backlight keyboard (DKMS version)' arch=('i686' 'x86_64') license=('GPL') @@ -14,7 +14,7 @@ source=("clevo-xsm-wmi-${pkgver}.src.tar.gz::https://bitbucket.org/lynthium/clev options=(!emptydirs) conflicts=("$_modname" 'tuxedo-wmi' 'tuxedo-wmi-dkms') provides=("$_modname") -depends=('dkms' 'linux-headers') +depends=('dkms' 'linux-headers' 'gcc' 'make') sha256sums=('0948133273d088a8610cac85d06287022cc847da7570d6d9d3f1f906352d569c' 'b6877cbd6abfb5ea24079ad740b985478ddd385062a02a45a7bce493576993de') install='clevo-xsm-wmi-dkms.install' diff --git a/clevo-xsm-wmi-dkms.install b/clevo-xsm-wmi-dkms.install index a81d01b1819b..c996aab6375e 100644 --- a/clevo-xsm-wmi-dkms.install +++ b/clevo-xsm-wmi-dkms.install @@ -1,20 +1,11 @@ -post_install() { - dkms install -m clevo-xsm-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 clevo-xsm-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 clevo-xsm-wmi -v ${1%%-*} --all + if (( $(vercmp $2 8.0-2) < 0 )); then + echo '==> Since version 9.0-1 kernel modules are loaded at boot by systemd-modules-load.' + echo '==> Read modules-load.d man page to disable them.' + fi } |