commit: 3c6c8e5627dae397e8e0f315ea1e110c7623ab8f
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 23 15:16:37 2024 +0000
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Mon Dec 23 15:38:31 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c6c8e56
games-util/xpadneo: add 0.9.7
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
games-util/xpadneo/Manifest | 1 +
games-util/xpadneo/xpadneo-0.9.7.ebuild | 54 +++++++++++++++++++++++++++++++++
2 files changed, 55 insertions(+)
diff --git a/games-util/xpadneo/Manifest b/games-util/xpadneo/Manifest
index eb4635d595c1..8598412b9b7f 100644
--- a/games-util/xpadneo/Manifest
+++ b/games-util/xpadneo/Manifest
@@ -1 +1,2 @@
DIST xpadneo-0.9.6.tar.gz 1344171 BLAKE2B
22a85732de2894d310e0994c101ed62b7358f1b6b8ba5b389fc273bfd48a1ce619ebc04f3699818290f61833234d4c444fff25ea852d9dcf420b99ab28687a03
SHA512
f423fb89cf911c727917591d79909acaecc9fdb68ca10c5cc2a128bd66174799f3efb2b9a87e43bb315ab92ddb7513f79300f06d347fabc9de11e63fc1d25689
+DIST xpadneo-0.9.7.tar.gz 1348791 BLAKE2B
6715e684d046ad3162db65196896d23f0c70046d02adbf5886d849818120fb731acb86da0a9e18e54b56b31220911ea25c296f1b8473eb0f0fca4fe96b98712b
SHA512
c5a3438fef6215f3dd733099f8d5fc86b55b092f3d808969040eb38b29c4fd786f5d3ee547cfc403e6f2c0af90106f91c4d4cf3954295f2e5b11e12949ca3069
diff --git a/games-util/xpadneo/xpadneo-0.9.7.ebuild
b/games-util/xpadneo/xpadneo-0.9.7.ebuild
new file mode 100644
index 000000000000..3327d7fff523
--- /dev/null
+++ b/games-util/xpadneo/xpadneo-0.9.7.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2024 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-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() {
+ local DOCS=( docs/{[^i]*.md,descriptors,reports} NEWS.md )
+ linux-mod-r1_src_install
+
+ insinto /etc/modprobe.d
+ doins hid-${PN}/etc-modprobe.d/${PN}.conf
+
+ udev_dorules hid-${PN}/etc-udev-rules.d/*.rules
+}
+
+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
+}