From e4ad87f45a3657c0c7226820af76e6a5d83e329e Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Sun, 8 Mar 2026 03:33:23 -0400 Subject: [PATCH] games-util/xpadneo: add 0.10 Signed-off-by: Ionen Wolkens --- games-util/xpadneo/Manifest | 1 + games-util/xpadneo/xpadneo-0.10.ebuild | 51 ++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 games-util/xpadneo/xpadneo-0.10.ebuild diff --git a/games-util/xpadneo/Manifest b/games-util/xpadneo/Manifest index d6b8b5587cdea..5d01397818bdb 100644 --- a/games-util/xpadneo/Manifest +++ b/games-util/xpadneo/Manifest @@ -1 +1,2 @@ +DIST xpadneo-0.10.tar.gz 1452227 BLAKE2B 525f1b8a92becbf86e1797e8c584c43885fb5356c1cbf3e12651001a4d81242a9c163b9c47676302b33e696b47cd418a3c2add717ae4e1eca8385b998a1aae27 SHA512 d95f60aa96a878e8c0992c752e0f1f030568fe709a14eedc1b07a65fe2b7686f6bf50ab21dde8ac6be9baf17eddf4b24ceb1f2098929f5dc232d54cd124dff9d DIST xpadneo-0.9.8.tar.gz 1431768 BLAKE2B 1cddb91cdd4b055fda5c09112af5441da621c07b14f61a0094cbfffa9a7b746491bff6ea0858a28b1e91a204af2822d005a28ed3b1354b6a367a3eee0fc7250c SHA512 8ec29834587fd8ca8127e6bb1bdea15be40bcb8a11bfb9be3e6f5069f50521ffc93a431ac3a265a3301da64a6e0cfab1166e44b7b1aca0f963a492398d6e684a diff --git a/games-util/xpadneo/xpadneo-0.10.ebuild b/games-util/xpadneo/xpadneo-0.10.ebuild new file mode 100644 index 0000000000000..b918a45323294 --- /dev/null +++ b/games-util/xpadneo/xpadneo-0.10.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit linux-mod-r1 udev + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/atar-axis/xpadneo.git" + EGIT_MIN_CLONE_TYPE="single" +else + SRC_URI="https://github.com/atar-axis/xpadneo/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +DESCRIPTION="Advanced Linux Driver for Xbox One Wireless Controller" +HOMEPAGE="https://atar-axis.github.io/xpadneo/" + +LICENSE="GPL-2 GPL-3+" +SLOT="0" + +CONFIG_CHECK="INPUT_FF_MEMLESS" + +src_compile() { + local modlist=( hid-${PN}=kernel/drivers/hid:hid-${PN}:hid-${PN}/src ) + local modargs=( KERNEL_SOURCE_DIR="${KV_OUT_DIR}" ) + + linux-mod-r1_src_compile +} + +src_install() { + linux-mod-r1_src_install + + # install modprobe.d/rules.d files and docs + emake PREFIX="${ED}" ETC_PREFIX=/usr/lib DOC_PREFIX=/usr/share/doc/${PF} install +} + +pkg_postinst() { + linux-mod-r1_pkg_postinst + udev_reload + + if [[ ! ${REPLACING_VERSIONS} ]]; then + elog "To pair the gamepad and view module options, see documentation in:" + elog " ${EROOT}/usr/share/doc/${PF}/" + fi +} + +pkg_postrm() { + udev_reload +}