commit:     be11c443097501901d6aec18213a8d2915bb578c
Author:     Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 15 20:40:04 2025 +0000
Commit:     Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
CommitDate: Mon Sep 15 20:41:53 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be11c443

app-laptop/tuxedo-drivers: add 4.15.4

Closes: https://bugs.gentoo.org/962837
Signed-off-by: Marc Schiffbauer <mschiff <AT> gentoo.org>

 app-laptop/tuxedo-drivers/Manifest                 |  1 +
 .../tuxedo-drivers/tuxedo-drivers-4.15.4.ebuild    | 89 ++++++++++++++++++++++
 2 files changed, 90 insertions(+)

diff --git a/app-laptop/tuxedo-drivers/Manifest 
b/app-laptop/tuxedo-drivers/Manifest
index fc482e8cf1a0..ea5df6ebc9d4 100644
--- a/app-laptop/tuxedo-drivers/Manifest
+++ b/app-laptop/tuxedo-drivers/Manifest
@@ -1,3 +1,4 @@
 DIST tuxedo-drivers-v3.2.14.tar.bz2 55567 BLAKE2B 
4104c76f9bb7d1f5887caad8a4bec90531a85397b642baced65130159e91e304c68896ea2dce173ee0ec31742e2786b976411a75464d9560e338ea16f18a9766
 SHA512 
edf0c1a4161a4a4fc09882d0905556299ec62358d9c32e716b1ad0daf230b8de9ec026daba97a964fe4a1e757eb860669840b4e9219ede42043e39eef2fc2ec8
 DIST tuxedo-drivers-v4.11.4.tar.bz2 65426 BLAKE2B 
b03087961b77c7b06d5a89a53662d4407a1e9b1a2ce8573226190ced4495addb5bd5cb6d604feb9783f447b3effe7a7d670a6b946998a07af8027d0c4fa77805
 SHA512 
9c46d4fbb798e9aa035fcc5f522e2b0400a15c5c0b26cc2ccd46c4d65c4f3ce5fdb7b469d2ccb782f5591eb9ec9df399e79fcbd96cba834cee10fa42f5a34d89
 DIST tuxedo-drivers-v4.13.1.tar.bz2 65782 BLAKE2B 
f68da7c28b9a66af18aab2e66da5ceb6d545074466d77cb831382972425028c0b6d76ec33a789cf0f493301e3203b62b42c4e3ff1218409aaf3df825feb459cc
 SHA512 
76d2f0ebda92cdac6df7df37d90db0b915abdc9de331ad193b18234ee22004bbbd9a77e0a2b278199e21ab42f686d59eff2fc6a0968e674e0363818fe140092f
+DIST tuxedo-drivers-v4.15.4.tar.bz2 68077 BLAKE2B 
107e16b646fa543ba5298113d2098c206e7864d77aa22584c6f3e958e528158818d6b3769f599bf0c797f827ccac8a6580fcf15854a1a2651f57bcd39e131fe5
 SHA512 
5e122796053bdf7a6c73c8461361bf515e95185d194180d0ed3e24ad6063bc7db17bed0dd3a975b9adcf8a96c4eab7d25eb0070e6d400d9825650ec631bae52b

diff --git a/app-laptop/tuxedo-drivers/tuxedo-drivers-4.15.4.ebuild 
b/app-laptop/tuxedo-drivers/tuxedo-drivers-4.15.4.ebuild
new file mode 100644
index 000000000000..7958330b3ab3
--- /dev/null
+++ b/app-laptop/tuxedo-drivers/tuxedo-drivers-4.15.4.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit linux-mod-r1 udev
+
+DESCRIPTION="Kernel modules for TUXEDO laptops"
+HOMEPAGE="https://gitlab.com/tuxedocomputers/development/packages/tuxedo-drivers";
+SRC_URI="https://gitlab.com/tuxedocomputers/development/packages/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.bz2";
+
+S="${WORKDIR}/${PN}-v${PV}"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="virtual/udev"
+DEPEND="${RDEPEND}"
+
+PATCHES=( )
+
+pkg_setup() {
+       local CONFIG_CHECK="
+               ACPI_WMI
+               IIO
+               INPUT_SPARSEKMAP
+               LEDS_CLASS_MULTICOLOR
+       "
+
+       local ERROR_LEDS_CLASS_MULTICOLOR="CONFIG_LEDS_CLASS_MULTICOLOR: is 
required for keyboard backlight"
+
+       local ERROR_ACPI_WMI="CONFIG_ACPI_WMI: is required for tuxedo-drivers"
+       local ERROR_INPUT_SPARSEKMAP="CONFIG_INPUT_SPARSEKMAP: is required for 
tuxedo-drivers"
+       local ERROR_IIOP="CONFIG_IIO: is required for tuxedo-drivers"
+
+       linux-mod-r1_pkg_setup
+}
+
+src_compile() {
+       local modlist=(
+               clevo_acpi=tuxedo::src
+               clevo_wmi=tuxedo::src
+               gxtp7380=tuxedo::src/gxtp7380
+               ite_8291=tuxedo::src/ite_8291
+               ite_8291_lb=tuxedo::src/ite_8291_lb
+               ite_8297=tuxedo::src/ite_8297
+               ite_829x=tuxedo::src/ite_829x
+               stk8321=tuxedo::src/stk8321
+               
tuxedo_compatibility_check=tuxedo::src/tuxedo_compatibility_check
+               tuxedo_io=tuxedo::src/tuxedo_io
+               tuxedo_keyboard=tuxedo::src
+               
tuxedo_nb02_nvidia_power_ctrl=tuxedo::src/tuxedo_nb02_nvidia_power_ctrl
+               tuxedo_nb04_kbd_backlight=tuxedo::src/tuxedo_nb04
+               tuxedo_nb04_keyboard=tuxedo::src/tuxedo_nb04
+               tuxedo_nb04_power_profiles=tuxedo::src/tuxedo_nb04
+               tuxedo_nb04_sensors=tuxedo::src/tuxedo_nb04
+               tuxedo_nb04_wmi_ab=tuxedo::src/tuxedo_nb04
+               tuxedo_nb04_wmi_bs=tuxedo::src/tuxedo_nb04
+               tuxedo_nb05_ec=tuxedo::src/tuxedo_nb05
+               tuxedo_nb05_fan_control=tuxedo::src/tuxedo_nb05
+               tuxedo_nb05_kbd_backlight=tuxedo::src/tuxedo_nb05
+               tuxedo_nb05_keyboard=tuxedo::src/tuxedo_nb05
+               tuxedo_nb05_power_profiles=tuxedo::src/tuxedo_nb05
+               tuxedo_nb05_sensors=tuxedo::src/tuxedo_nb05
+               tuxedo_tuxi_fan_control=tuxedo::src/tuxedo_tuxi
+               tuxi_acpi=tuxedo::src/tuxedo_tuxi
+               uniwill_wmi=tuxedo::src
+       )
+       local modargs=( KDIR=${KV_OUT_DIR} )
+
+       linux-mod-r1_src_compile
+}
+src_install() {
+       insinto /usr/lib/udev/hwdb.d
+       doins usr/lib/udev/hwdb.d/*.hwdb
+       udev_dorules usr/lib/udev/rules.d/*.rules
+       linux-mod-r1_src_install
+}
+
+pkg_postinst() {
+       linux-mod-r1_pkg_postinst
+       systemd-hwdb update --root="${ROOT}"
+       udev_reload
+}
+
+pkg_postrm() {
+       udev_reload
+}

Reply via email to