blob: 192b99b093cfa2258e983004e4160180896edc9b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Maintainer: Marc ROZANC <marc@rozanc.fr>
_modname='clevo-xsm-wmi'
pkgname="${_modname}-dkms"
pkgver='0.6'
_pkgtag='291801cb8d85'
pkgrel=2
pkgdesc='A reverse engineering driver for the Clevo SM series backlight keyboard (DKMS version)'
arch=('i686' 'x86_64')
license=('GPL')
url='https://bitbucket.org/lynthium/clevo-xsm-wmi'
source=("clevo-xsm-wmi-${pkgver}.src.tar.gz::https://bitbucket.org/lynthium/clevo-xsm-wmi/get/v${pkgver}.tar.gz"
"dkms.conf.in")
options=(!emptydirs)
conflicts=("$_modname" 'tuxedo-wmi' 'tuxedo-wmi-dkms')
provides=("$_modname")
depends=('dkms' 'linux-headers')
md5sums=('cd3341fd759964e2e48ccc6a3c8bb515'
'2ba847baebeee1b60a900d09b0e426da')
install='clevo-xsm-wmi-dkms.install'
build() {
cd "${srcdir}/lynthium-clevo-xsm-wmi-${_pkgtag}/module"
make
}
package() {
cd "${srcdir}/lynthium-clevo-xsm-wmi-${_pkgtag}/module"
install -dm755 "${pkgdir}/usr/src/${_modname}-${pkgver}/"
for i in "${srcdir}/lynthium-${_modname}-${_pkgtag}/module/"{Makefile,clevo-xsm-wmi.c}; do
install -D -m644 "${i}" "${pkgdir}/usr/src/${_modname}-${pkgver}/"
done
sed "s/#MODULE_VERSION#/${pkgver}/" "${srcdir}/dkms.conf.in" > "${pkgdir}/usr/src/${_modname}-${pkgver}/dkms.conf"
install -D -m644 /usr/share/licenses/common/GPL2/license.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|