commit:     ea33a2eae21644b153c91459c9f89ec53441dc11
Author:     Sebastian Engel <sighunter <AT> gmx <DOT> de>
AuthorDate: Mon Sep  8 19:22:46 2025 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Tue Sep  9 12:04:59 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ea33a2ea

games-util/xone: add 0.4.5

Signed-off-by: Sebastian Engel <sighunter <AT> gmx.de>

 games-util/xone/Manifest          |  1 +
 games-util/xone/xone-0.4.5.ebuild | 74 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 75 insertions(+)

diff --git a/games-util/xone/Manifest b/games-util/xone/Manifest
index e1c4b24e6e..a51621f1c8 100644
--- a/games-util/xone/Manifest
+++ b/games-util/xone/Manifest
@@ -2,5 +2,6 @@ DIST xone-0.3.3.tar.gz 65259 BLAKE2B 
3aa90cf1dff1b70895a2c66b7ea3f68536243cb6ab7
 DIST xone-0.4.2.tar.gz 75452 BLAKE2B 
390cfde3f40aa6dd8b01bd449502fb21a4aeaff647aed063e7bfb0cde6f8e4717172605ab57ac8de91ee61354b55f74fbcd07d51438cd83d8cbc7adb5de5722e
 SHA512 
c1ec4fa20fff43c8f9681415df2a230b99ec58b4586ab94ede615d6aa195ee74ac5b5b26f6a53d40e05bce1842dcc8f1b82cd890cd4fd41bc2543603b9a6db07
 DIST xone-0.4.3.tar.gz 75786 BLAKE2B 
9411955aeb03fb5a2c605bd8d6cb74150672a86b9373d35109529aa5da4803defff75f5d2cd7e91e21e6dd04bd4c5f5545dcfbd8e35d40c9f31f969115cbc6f8
 SHA512 
9ca71ffabfaf3fa89cbc73b99b99ce0d7a11bf47c00344a3e9a6b0bac00ba79bc0d2ba866d3bad78c20bd05aef965d706acde62e46aef3075c91fe0b88fa1fba
 DIST xone-0.4.4.tar.gz 76531 BLAKE2B 
16f1f77d130c34d067dd385f5ccf5755ac89b91660160f340afe0bca2937b4530084908384b0e2c32f1427c314bbce8720eea7493df0b7672434e38bbac03846
 SHA512 
51b2b6417db69cc8e150bf94e191e5178b3e0e94ddf41f24aaf672c4d589195222c746bbe2ccf55ccf75bffa9dc29ac6fe3dbbc67d9493f55d98d26aeff5601e
+DIST xone-0.4.5.tar.gz 76430 BLAKE2B 
b1db81167adb8a12179eb88d300ee8960db2be3dc8903b23652ae5132c387a683ca3e302dc8dcef413138669e762ce37c125690db9ba25c5f83bd900a166a151
 SHA512 
ad7a66d7219d4a87ff8f69eb89a863a7959cfe3f49ce0952c3dd94489e08f48bd96b9eb7e8e66c7004765468ff05cde186f1403f16e85350033a7e36797ebfae
 DIST xone-driver-201512-20810869_8ce2975a7fbaa06bcfb0d8762a6275a1cf7c1dd3.cab 
217326 BLAKE2B 
673d1daa4f40be22663be48e4a66de276a92d340d3f6be4793c6e307c336b191785d13854c2deecc619c9f23bf877347836e472ac9d405f562c84923eeeeac5f
 SHA512 
fa2e5a0da4fa10716230d878b846c80049b8d4e09c71143ec5d21770133871dc5811068998062812075ebcdf1a222d1c4f5e7198b2fc755b6aa01573d515ba18
 DIST 
xone-driver-201707-1cd6a87c-623f-4407-a52d-c31be49e925c_e19f60808bdcbfbd3c3df6be3e71ffc52e43261e.cab
 199891 BLAKE2B 
f531a9f4b8220ee4501431b308ee6e29a8dea26467020df25b7fa22228543cc560e1170d13b1cb3490c64c48bf610e3fb7ddfb743e4a2028f5980e02d0c36790
 SHA512 
0906debd6c1f4706348ec1b1cbf233ea2c45bbc0b8882593740964036808722f5bb701f43da803320609e02072cd16dada572d337fd4c05cc1cf6dde6fd38908

diff --git a/games-util/xone/xone-0.4.5.ebuild 
b/games-util/xone/xone-0.4.5.ebuild
new file mode 100644
index 0000000000..d75e88f1e0
--- /dev/null
+++ b/games-util/xone/xone-0.4.5.ebuild
@@ -0,0 +1,74 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit linux-mod-r1
+
+XONE_DRIVER_VERSION="201707-1cd6a87c-623f-4407-a52d-c31be49e925c_e19f60808bdcbfbd3c3df6be3e71ffc52e43261e"
+XONE_DRIVER_VERSION_045E_02E6="201512-20810869_8ce2975a7fbaa06bcfb0d8762a6275a1cf7c1dd3"
+
+DESCRIPTION="Linux kernel driver for Xbox One and Xbox Series X|S accessories"
+HOMEPAGE="https://github.com/dlundqvist/xone";
+SRC_URI="
+       mirror+https://github.com/dlundqvist/xone/archive/v${PV}.tar.gz -> 
${P}.tar.gz
+       
https://catalog.s.download.windowsupdate.com/c/msdownload/update/driver/drvs/${XONE_DRIVER_VERSION:0:4}/${XONE_DRIVER_VERSION:4:2}/${XONE_DRIVER_VERSION:7}.cab
+               -> ${PN}-driver-${XONE_DRIVER_VERSION}.cab
+       
https://catalog.s.download.windowsupdate.com/d/msdownload/update/driver/drvs/${XONE_DRIVER_VERSION_045E_02E6:0:4}/${XONE_DRIVER_VERSION_045E_02E6:4:2}/${XONE_DRIVER_VERSION_045E_02E6:7}.cab
+               -> ${PN}-driver-${XONE_DRIVER_VERSION_045E_02E6}.cab
+"
+
+LICENSE="GPL-2+ MS-TOU"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RESTRICT="bindist mirror test"
+
+BDEPEND="app-arch/cabextract"
+
+CONFIG_CHECK="SND CFG80211 INPUT_FF_MEMLESS USB POWER_SUPPLY LEDS_CLASS HID"
+MODULES_KERNEL_MIN=5.13
+
+src_unpack() {
+       unpack ${P}.tar.gz
+
+       cabextract -F FW_ACC_00U.bin -d "${S}/xone_firmware" \
+               "${DISTDIR}/${PN}-driver-${XONE_DRIVER_VERSION}.cab" > 
/dev/null || die
+       cabextract -F FW_ACC_00U.bin -d "${S}/xone_firmware_045e_02e6" \
+               "${DISTDIR}/${PN}-driver-${XONE_DRIVER_VERSION_045E_02E6}.cab" 
> /dev/null || die
+}
+
+src_prepare() {
+       cp "${FILESDIR}/Makefile" "${S}" || die
+       default
+}
+
+src_compile() {
+       local modlist=(
+               xone_wired=kernel/drivers/input/joystick
+               xone_dongle=kernel/drivers/input/joystick
+               xone_gip=kernel/drivers/input/joystick
+               xone_gip_gamepad=kernel/drivers/input/joystick
+               xone_gip_headset=kernel/drivers/input/joystick
+               xone_gip_chatpad=kernel/drivers/input/joystick
+               xone_gip_madcatz_strat=kernel/drivers/input/joystick
+               xone_gip_madcatz_glam=kernel/drivers/input/joystick
+               xone_gip_pdp_jaguar=kernel/drivers/input/joystick
+
+       )
+
+       linux-mod-r1_src_compile
+}
+
+src_install() {
+       linux-mod-r1_src_install
+
+       einfo "Installing module blacklist"
+       insinto /etc/modprobe.d/
+       newins "${S}"/install/modprobe.conf xone-blacklist.conf
+
+       einfo "Installing Microsoft binary firmware"
+       insinto /lib/firmware/
+       newins "${S}"/xone_firmware/FW_ACC_00U.bin xow_dongle.bin
+       newins "${S}"/xone_firmware_045e_02e6/FW_ACC_00U.bin 
xow_dongle_045e_02e6.bin
+}

Reply via email to