commit: 9d33941e3bbf6e141c0ee4308794ed87144b7989 Author: Sebastian Engel <sighunter <AT> gmx <DOT> de> AuthorDate: Tue Sep 2 06:30:44 2025 +0000 Commit: David Roman <davidroman96 <AT> gmail <DOT> com> CommitDate: Tue Sep 2 06:30:44 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9d33941e
games-util/xone: add 0.4.4 Signed-off-by: Sebastian Engel <sighunter <AT> gmx.de> games-util/xone/Manifest | 1 + games-util/xone/xone-0.4.4.ebuild | 74 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) diff --git a/games-util/xone/Manifest b/games-util/xone/Manifest index 7d4b6bae8b..c14070a41f 100644 --- a/games-util/xone/Manifest +++ b/games-util/xone/Manifest @@ -2,5 +2,6 @@ DIST xone-0.3.1.tar.gz 64731 BLAKE2B a55fad3ffc6b53b20a1bf8118a8b4bc6418c0a89e2f DIST xone-0.3.3.tar.gz 65259 BLAKE2B 3aa90cf1dff1b70895a2c66b7ea3f68536243cb6ab72a4c7a7fa5ace2e05554844ecdbb7e29ac79747aa876cefa345d0b9c1c9f2e383315abe432faf85abd7b6 SHA512 1f512aba5c781656a8e7d65ce7b5a440c25446092b3ed6cbbeb3a44e091c1eb90d7248aa5a5b7c334131b1f6d1b4bc6d49acb04deb7ecd463df66fce5c051997 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-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.4.ebuild b/games-util/xone/xone-0.4.4.ebuild new file mode 100644 index 0000000000..d75e88f1e0 --- /dev/null +++ b/games-util/xone/xone-0.4.4.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 +}
