commit: 35c08afe38e6853538db2d397ced12db66cec648 Author: Sebastian Engel <sighunter <AT> gmx <DOT> de> AuthorDate: Sat Nov 8 19:25:41 2025 +0000 Commit: Sebastian Engel <sighunter <AT> gmx <DOT> de> CommitDate: Sat Nov 8 19:26:01 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=35c08afe
games-util/xone: add 0.4.10 Signed-off-by: Sebastian Engel <sighunter <AT> gmx.de> games-util/xone/Manifest | 1 + games-util/xone/xone-0.4.10.ebuild | 74 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) diff --git a/games-util/xone/Manifest b/games-util/xone/Manifest index 643e6cebcf..e095211108 100644 --- a/games-util/xone/Manifest +++ b/games-util/xone/Manifest @@ -1,3 +1,4 @@ +DIST xone-0.4.10.tar.gz 76832 BLAKE2B 71ac936ef29d4463cd306e0f3e36b950be33798c0b89063ca8f8658e654b91670533cc727029eb4f681c47650b1ba4c7db90843492de3873ec570efa5edcba71 SHA512 7e069bcdd9737c174d0cc9dfdbac00c8e80267c9719a449fa614e98ac48029c23bdf7c19909ae0bdb450fb0f6a3faf60727ec3c9f957247c3d5f7c2ad9fed0c5 DIST xone-0.4.8.tar.gz 76490 BLAKE2B 466c72006a58d91df96060765e355f774468441757c02bb53d767b60a377c640b24de08e888c056a5f5e90f52935e94f4089e5f08559687e09ca68185c2d4731 SHA512 9c03b28999bf286999378a2dbc956f47b0c8581880dcba8d2fd1e6e097a8f5375cc78c1e8556de52ece560e384e28906cd3664c0bfd9d9b96bd4c16ef340a146 DIST xone-0.4.9.tar.gz 76814 BLAKE2B 37f0703493abe65fd2b1c787cb79d1463a2a308a008297b5547eff65c375a669b571a097737e07d4a424022692b46a886c5c384e66e19a98023a9769196393e5 SHA512 e57d49427fde558659a2dc6934ea18e721288a413a71d2b2a83d751d7f445f0968745e280e80e8a966c9b4785a721ed11b865b8ac6b37017d6e4c25f58dfa3fe DIST xone-driver-201512-20810869_8ce2975a7fbaa06bcfb0d8762a6275a1cf7c1dd3.cab 217326 BLAKE2B 673d1daa4f40be22663be48e4a66de276a92d340d3f6be4793c6e307c336b191785d13854c2deecc619c9f23bf877347836e472ac9d405f562c84923eeeeac5f SHA512 fa2e5a0da4fa10716230d878b846c80049b8d4e09c71143ec5d21770133871dc5811068998062812075ebcdf1a222d1c4f5e7198b2fc755b6aa01573d515ba18 diff --git a/games-util/xone/xone-0.4.10.ebuild b/games-util/xone/xone-0.4.10.ebuild new file mode 100644 index 0000000000..d75e88f1e0 --- /dev/null +++ b/games-util/xone/xone-0.4.10.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 +}
