games-util/xone: add 0.5.8

Since at least version 0.5.6, xone is developed with the help of AI.
Tread carefully

https://github.com/dlundqvist/xone/pull/168
https://github.com/dlundqvist/xone/pull/176
https://github.com/dlundqvist/xone/pull/185

Signed-off-by: Sebastian Engel <sighunter@gmx.de>
This commit is contained in:
Sebastian Engel
2026-03-17 21:04:54 +01:00
parent a025e4c1ed
commit e255b05823
2 changed files with 82 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
DIST xone-0.5.5.tar.gz 77837 BLAKE2B eadce8a067c54d3911e185d3b2d731f1fde6858ed71ede5db32913ab3dbeb0ddde8de48811ed204af26995e8bdc0f961c2f09ec686ff5182c10d2cff40f8039d SHA512 1005f2a1bc658a253734c00ce686e7dca4d3b5be28141e63af417920942064340a91a3fc920d265a1ca92419debfbdc11c56f8e4a66c58018de2d3af21aa7feb
DIST xone-0.5.6.tar.gz 78635 BLAKE2B eb86e0d173958ff7e14b55151ef7730bf1d6485fc95bd93678bda541e8d901d3b431c837f8671eb2820e33ffd4d30b5b8db833056465bc4d88738b5dbcfc2cf0 SHA512 754ab97f08ccd449777656cd5c762bd5c0057f5b15df7853c6d74b5b2be44c11e30bad31a33e875857dca1b12db8c0c9b82beb79becb338a3bc811a3f9c0363b
DIST xone-0.5.7.tar.gz 80394 BLAKE2B 9a07d4998c3626b8baab6f75b370e225f9c5d9d695fca103af79c41a5ce501b3348282a254a4586858f2de25def3a48d39b6e49fb4fff7641620459226816118 SHA512 994c3a08301479f4882115b7897755f775b089cc07a25489c3a16617eb0551979137b22b8384af913eeee368c8b84852a1005d802881f869a1e482566ae71acf
DIST xone-0.5.8.tar.gz 81236 BLAKE2B 7e0b6e79a5361bd556ea2ab75f06015ba0ec832969843f2d34c01ad46bd009c9356bdb711690d4be4981364e5523b494599389c7e54cf29740acd687b7f59940 SHA512 ae63a10b2768f6b8495c89e1b39c4a5aaa16837c6ffdf18a2ea6ace8835e961397484e320ee206062fb979bff8217e4651ac901acac082bc42512d542a7be6ce
DIST xone-firmware-02e6.cab 199891 BLAKE2B f531a9f4b8220ee4501431b308ee6e29a8dea26467020df25b7fa22228543cc560e1170d13b1cb3490c64c48bf610e3fb7ddfb743e4a2028f5980e02d0c36790 SHA512 0906debd6c1f4706348ec1b1cbf233ea2c45bbc0b8882593740964036808722f5bb701f43da803320609e02072cd16dada572d337fd4c05cc1cf6dde6fd38908
DIST xone-firmware-02f9.cab 226982 BLAKE2B 9518e592db4afe18ff3111800471b0674e43624ae539bff0251b42eb11b0c32e54762f158018ec604b5050d6dfd99ed35fd9da19c186eb9ca5c18135355810c2 SHA512 b5732ee8c22ffac9964109669c9dfe30f3fdcdd026125f3a20450e4d3975fda75a2c8b453013202b7c56e492cccc963f8c3f97a7c8c21b1af1caa4f5866e7cc4
DIST xone-firmware-02fe.cab 216868 BLAKE2B 386fc3d0a87ec03c78706e3077572934bc8b416037bd2559d972e9e29f2e3642d813cd62325710ab3fcb7e647dee1ee4bf75b6c2da9181f86e386fcce3d14539 SHA512 d7a239f1f4ed8db6b1db99db34ece881d835e44878ad131b7fb55886c68d8516064f5badf90ab4c54fda835750dcec54bf4b2b779c8f5fad3033d46251d37765

View File

@@ -0,0 +1,81 @@
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit linux-mod-r1
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/d/msdownload/update/driver/drvs/2017/03/2ea9591b-f751-442c-80ce-8f4692cdc67b_6b555a3a288153cf04aec6e03cba360afe2fce34.cab
-> ${PN}-firmware-02fe.cab
https://catalog.s.download.windowsupdate.com/c/msdownload/update/driver/drvs/2017/07/1cd6a87c-623f-4407-a52d-c31be49e925c_e19f60808bdcbfbd3c3df6be3e71ffc52e43261e.cab
-> ${PN}-firmware-02e6.cab
https://catalog.s.download.windowsupdate.com/c/msdownload/update/driver/drvs/2017/06/1dbd7cb4-53bc-4857-a5b0-5955c8acaf71_9081931e7d664429a93ffda0db41b7545b7ac257.cab
-> ${PN}-firmware-02f9.cab
https://catalog.s.download.windowsupdate.com/d/msdownload/update/driver/drvs/2017/08/aeff215c-3bc4-4d36-a3ea-e14bfa8fa9d2_e58550c4f74a27e51e5cb6868b10ff633fa77164.cab
-> ${PN}-firmware-091e.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 SYSFS"
MODULES_KERNEL_MIN=6.5
src_unpack() {
unpack ${P}.tar.gz
cabextract -F FW_ACC_00U.bin -d "${S}/xone_firmware_02fe" \
"${DISTDIR}/${PN}-firmware-02fe.cab" > /dev/null || die
cabextract -F FW_ACC_00U.bin -d "${S}/xone_firmware_02e6" \
"${DISTDIR}/${PN}-firmware-02e6.cab" > /dev/null || die
cabextract -F FW_ACC_CL.bin -d "${S}/xone_firmware_02f9" \
"${DISTDIR}/${PN}-firmware-02f9.cab" > /dev/null || die
cabextract -F FW_ACC_BR.bin -d "${S}/xone_firmware_091e" \
"${DISTDIR}/${PN}-firmware-091e.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_02e6/FW_ACC_00U.bin xone_dongle_02e6.bin
newins "${S}"/xone_firmware_02fe/FW_ACC_00U.bin xone_dongle_02fe.bin
newins "${S}"/xone_firmware_02f9/FW_ACC_CL.bin xone_dongle_02f9.bin
newins "${S}"/xone_firmware_091e/FW_ACC_BR.bin xone_dongle_091e.bin
}