Compare commits

...

2 Commits

Author SHA1 Message Date
Parona
f5b34656f9 Merge branch 'xpad-noone' into 'master'
games-util/xpad-noone: Added xpad-noone-20240109

See uest src_prepare/src_prepare-overlay!405
2024-04-09 19:31:11 +00:00
Brandon Sakai
2652d2d516 games-util/xpad-noone: Added xpad-noone-20240109
Release is tagged c3d1610
2024-04-09 19:31:11 +00:00
4 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST xpad-noone-20240109.tar.gz 20675 BLAKE2B 40e0dbf424aa5a88d62f0cd8575c6c7ac22f4a6bf2a57cd987536d862fd518d54aef62120271f87f8b9d84505d96817aa89cb385cb0113ff7bdf4b83cdbef51d SHA512 fc559b8f951ff8a3c0e0efa89197bb66baba29c19e6474417f6eb8822ffc91a933c69cb5353baf17816d8ebc042fb94396557948fb3eda140fd146aa020b2e7e

View File

@ -0,0 +1,7 @@
KERNEL_DIR ?= /usr/src/linux
PWD := $(shell pwd)
all: module
module:
@$(MAKE) -C $(KERNEL_DIR) M=$(PWD) modules

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<upstream>
<remote-id type="github">medusalix/xpad-noone</remote-id>
</upstream>
<longdescription>
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.
</longdescription>
</pkgmetadata>

View File

@ -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
}