blob: 730672d5990bb9b206ea7c73bab2615655cde2b2 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Maintainer: Filippo Falezza <filippo.falezza at outlook dot com>
# Contributor: Steven Seifried <gitlab@canox.net>
_pkgname=tuxedo-drivers
pkgname=tuxedo-drivers-xmg-dkms-git
pkgver=v4.4.2.r229.g56f4215
pkgrel=1
pkgdesc="TUXEDO Computers kernel module drivers for keyboard, keyboard backlight & general hardware I/O using the SysFS interface"
url="https://github.com/effeffe/tuxedo-drivers-XMG"
license=('GPL-2.0-or-later')
arch=('x86_64')
depends=('dkms')
options=(!debug)
optdepends=('linux-headers: build modules against Arch kernel'
'linux-lts-headers: build modules against LTS kernel'
'linux-zen-headers: build modules against ZEN kernel'
'linux-hardened-headers: build modules against the HARDENED kernel')
# tuxedo-keyboard-ite = ite_8291, ite_8291_lb, ite_8297 and ite_829x
provides=(
'tuxedo-drivers-dkms'
'tuxedo-keyboard'
'tuxedo-keyboard-ite'
'tuxedo-io'
'clevo-wmi'
'clevo-acpi'
'uniwill-wmi'
'ite_8291'
'ite_8291_lb'
'ite_8297'
'ite_829x')
conflicts=('tuxedo-keyboard-dkms' 'tuxedo-drivers-dkms' 'tuxedo-keyboard-ite-dkms')
source=("${_pkgname%}-$pkgver"::git+https://github.com/effeffe/tuxedo-drivers-XMG.git
# tuxedo_compatibility_check.patch
# tuxedo_io.patch
)
sha256sums=(
'SKIP'
# 'ef88dad138adedf52e6ec0cc406084194da2bb43b33e9abc96c3edb7738ac602'
# 'dec506a44a5f34fdab2f1d7222fc97210234be6fd034ca6532fa8f0f1ce84d14'
)
pkgver() {
cd "${_pkgname%}-$pkgver"
git describe --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
#prepare() {
# patch -Np0 -i "${srcdir}"/tuxedo_compatibility_check.patch
# patch -Np0 -i "${srcdir}"/tuxedo_io.patch
#}
package() {
mkdir -p "${pkgdir}/usr/src/${_pkgname}-${pkgver}"
mkdir -p "${pkgdir}/etc/udev/rules.d/"
mkdir -p "${pkgdir}/usr/lib/udev/hwdb.d"
install -Dm644 "${_pkgname%}-$pkgver"/debian/tuxedo-drivers.dkms "${pkgdir}/usr/src/${_pkgname%}-$pkgver/dkms.conf"
sed -i "s/#MODULE_VERSION#/${pkgver}/" "${pkgdir}/usr/src/${_pkgname%}-$pkgver/dkms.conf"
install -Dm644 "${_pkgname%}-$pkgver"/tuxedo_keyboard.conf -t "$pkgdir/usr/lib/modprobe.d/"
cp -ar "${_pkgname%}-$pkgver"/src/* "$pkgdir/usr/src/${_pkgname%}-$pkgver/"
install -Dm644 "${_pkgname%}-$pkgver"/99-z-tuxedo-systemd-fix.rules -t "$pkgdir/etc/udev/rules.d/"
install -Dm644 "${_pkgname%}-$pkgver"/99-infinityflex-touchpanel-toggle.rules -t "$pkgdir/etc/udev/rules.d/"
install -Dm644 "${_pkgname%}-$pkgver"/61-sensor-tuxedo.hwdb -t "$pkgdir/usr/lib/udev/hwdb.d"
install -Dm644 "${_pkgname%}-$pkgver"/61-keyboard-tuxedo.hwdb -t "$pkgdir/usr/lib/udev/hwdb.d/"
}
|