diff --git a/games-util/xpad-noone/Manifest b/games-util/xpad-noone/Manifest new file mode 100644 index 0000000..461cab2 --- /dev/null +++ b/games-util/xpad-noone/Manifest @@ -0,0 +1 @@ +DIST xpad-noone-20240109.tar.gz 20675 BLAKE2B 40e0dbf424aa5a88d62f0cd8575c6c7ac22f4a6bf2a57cd987536d862fd518d54aef62120271f87f8b9d84505d96817aa89cb385cb0113ff7bdf4b83cdbef51d SHA512 fc559b8f951ff8a3c0e0efa89197bb66baba29c19e6474417f6eb8822ffc91a933c69cb5353baf17816d8ebc042fb94396557948fb3eda140fd146aa020b2e7e diff --git a/games-util/xpad-noone/files/Makefile b/games-util/xpad-noone/files/Makefile new file mode 100644 index 0000000..2cb4644 --- /dev/null +++ b/games-util/xpad-noone/files/Makefile @@ -0,0 +1,7 @@ +KERNEL_DIR ?= /usr/src/linux +PWD := $(shell pwd) + +all: module + +module: + @$(MAKE) -C $(KERNEL_DIR) M=$(PWD) modules diff --git a/games-util/xpad-noone/metadata.xml b/games-util/xpad-noone/metadata.xml new file mode 100644 index 0000000..0071f74 --- /dev/null +++ b/games-util/xpad-noone/metadata.xml @@ -0,0 +1,13 @@ + + + + + medusalix/xpad-noone + + + This is the original upstream xpad driver from the Linux kernel with support + for Xbox One controllers removed. If you are running the xone driver you + will have to replace the xpad kernel module with this one to retain the + functionality of Xbox and Xbox 360 controllers. + + diff --git a/games-util/xpad-noone/xpad-noone-20240109.ebuild b/games-util/xpad-noone/xpad-noone-20240109.ebuild new file mode 100644 index 0000000..b592a40 --- /dev/null +++ b/games-util/xpad-noone/xpad-noone-20240109.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit linux-mod-r1 + +# This is the name of the tag/release, not the commit (although the tag is named after the commit) +VERSION="c3d1610" + +DESCRIPTION="Linux kernel driver for Xbox 360 controllers with Xbox One support removed" +HOMEPAGE="https://github.com/medusalix/xpad-noone" +SRC_URI="https://github.com/medusalix/xpad-noone/archive/refs/tags/${VERSION}.tar.gz -> ${P}.tar.gz" + +S="${WORKDIR}/${PN}-${VERSION}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" + +CONFIG_CHECK="INPUT_JOYDEV INPUT_JOYSTICK" +MODULES_KERNEL_MIN=5.11 + +src_prepare() { + # Use custom Makefile to use KERNEL_DIR instead of guessing it with uname + cp "${FILESDIR}/Makefile" "${S}" || die + eapply_user +} + +src_compile() { + local modlist=( + xpad-noone=kernel/drivers/input/joystick + ) + + linux-mod-r1_src_compile +}