commit: cd0955467a49800561f18f6f7beaaea3e7d2fc47 Author: Sebastian Engel <sighunter <AT> gmx <DOT> de> AuthorDate: Mon Oct 6 07:05:34 2025 +0000 Commit: Sebastian Engel <sighunter <AT> gmx <DOT> de> CommitDate: Mon Oct 6 07:05:34 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=cd095546
games-util/xone: add 0.4.8 Signed-off-by: Sebastian Engel <sighunter <AT> gmx.de> games-util/xone/Manifest | 1 + games-util/xone/xone-0.4.8.ebuild | 74 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) diff --git a/games-util/xone/Manifest b/games-util/xone/Manifest index 5aa4d5dc2a..fe6f8ce50f 100644 --- a/games-util/xone/Manifest +++ b/games-util/xone/Manifest @@ -1,5 +1,6 @@ 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-0.4.8.tar.gz 76490 BLAKE2B 466c72006a58d91df96060765e355f774468441757c02bb53d767b60a377c640b24de08e888c056a5f5e90f52935e94f4089e5f08559687e09ca68185c2d4731 SHA512 9c03b28999bf286999378a2dbc956f47b0c8581880dcba8d2fd1e6e097a8f5375cc78c1e8556de52ece560e384e28906cd3664c0bfd9d9b96bd4c16ef340a146 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.8.ebuild b/games-util/xone/xone-0.4.8.ebuild new file mode 100644 index 0000000000..d75e88f1e0 --- /dev/null +++ b/games-util/xone/xone-0.4.8.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 +}
