commit: be016c4dbc5d715da8bb52ce3032bdfdf4c9e993 Author: Sebastian Engel <sighunter <AT> gmx <DOT> de> AuthorDate: Wed Jun 11 22:57:09 2025 +0000 Commit: David Roman <davidroman96 <AT> gmail <DOT> com> CommitDate: Wed Jun 11 23:04:08 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=be016c4d
games-util/xone: add 0.3.1 * Moved ebuild to the maintained fork https://github.com/dlundqvist/xone * Builds with kernel 6.15 * Added firmware for Xbox Wireless Adapter 045e:02e6 Signed-off-by: Sebastian Engel <sighunter <AT> gmx.de> games-util/xone/Manifest | 2 ++ games-util/xone/metadata.xml | 1 + games-util/xone/xone-0.3.1.ebuild | 76 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 79 insertions(+) diff --git a/games-util/xone/Manifest b/games-util/xone/Manifest index 115ef06b6a..1bbbe19743 100644 --- a/games-util/xone/Manifest +++ b/games-util/xone/Manifest @@ -1,2 +1,4 @@ +DIST xone-0.3.1.tar.gz 64731 BLAKE2B a55fad3ffc6b53b20a1bf8118a8b4bc6418c0a89e2ffb50b459484d3c4463210634a6db9836bf289b9249d7c2aa3b56dd3e16069efdc4d63fbc4f1e89c088af9 SHA512 fa741765c63cdd57a1428ef304dc2fcecd4b76379ce472c3abcebb7f83c7ac1568e563cd43b4e944dffe1ab314a80f088edb8654d40f9ec1686a74e907b41f6c DIST xone-0.3_p20240425.tar.gz 62680 BLAKE2B c4a7a0fa3eb2f53e9213413bca809824f24f8b273093dc65b57b3d3729f1c2805f1477f686d143975cb8f17248a7abed35ae303236cdd7ba4912fec66261efea SHA512 b195b413b41a026a1e802d332b0365b433847176f876cd765368fa7c17b0d4d3c18608697351ecd47381110d4bc62af87de53dcd385ffc8758910bae9761152d +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/metadata.xml b/games-util/xone/metadata.xml index d2d2500998..974080003f 100644 --- a/games-util/xone/metadata.xml +++ b/games-util/xone/metadata.xml @@ -7,6 +7,7 @@ </maintainer> <upstream> <remote-id type="github">medusalix/xone</remote-id> + <remote-id type="github">dlundqvist/xone</remote-id> </upstream> <longdescription> xone is a Linux kernel driver for Xbox One and Xbox Series X|S diff --git a/games-util/xone/xone-0.3.1.ebuild b/games-util/xone/xone-0.3.1.ebuild new file mode 100644 index 0000000000..c7666ffec6 --- /dev/null +++ b/games-util/xone/xone-0.3.1.ebuild @@ -0,0 +1,76 @@ +# Copyright 2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit linux-mod-r1 + +COMMIT="197b160f7806d7d27117b12198cacb7656a07f1f" +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/${COMMIT}.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 +" +S="${WORKDIR}/${PN}-${COMMIT}" + +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 +}