RetroPie-Setup/scriptmodules/supplementary/xpadneo.sh
cmitu f119cdf2ab xpadneo: update to v0.9.7
Most likely the last v0.9.x release, followed by v0.10.x which will probably not use `dkms` for build/install.

Headlines:

  * core, quirks: Add GameSir T4 Nova Lite support
  * core, quirks: Add GuliKit KK3 MAX quirks
  * core, quirks: Add heuristics to detect GameSir Nova controllers
  * hid-xpadneo: Actually allow building with kernel 6.12
  * hid-xpadneo: Allow building with kernel 6.12
  * xpadneo, core: Add configuration for disabling Xbox logo shift-mode
  * xpadneo, core: Fix coding style
  * xpadneo, hidraw: Fixup previous commit to properly work with DKMS
  * xpadneo, hidraw: Work around other software messing with our udev rules
  * xpadneo, quirks: Let another Microsoft OUI bypass heuristics
  * xpadneo, quirks: Prevent applying heuristics for some known vendors
2025-01-08 16:49:02 +00:00

48 lines
1.4 KiB
Bash

#!/usr/bin/env bash
# This file is part of The RetroPie Project
#
# The RetroPie Project is the legal property of its developers, whose names are
# too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source.
#
# See the LICENSE.md file at the top-level directory of this distribution and
# at https://raw.githubusercontent.com/RetroPie/RetroPie-Setup/master/LICENSE.md
#
rp_module_id="xpadneo"
rp_module_desc="Advanced Linux driver for Xbox One wireless gamepads"
rp_module_licence="GPL3 https://raw.githubusercontent.com/atar-axis/xpadneo/master/LICENSE"
rp_module_repo="git https://github.com/atar-axis/xpadneo.git v0.9.7"
rp_module_section="driver"
rp_module_flags="nobin"
function _version_xpadneo() {
cat "$md_inst/VERSION"
}
function depends_xpadneo() {
local depends=(dkms rsync LINUX-HEADERS)
getDepends "${depends[@]}"
}
function sources_xpadneo() {
gitPullOrClone
rsync -a --delete "$md_build/hid-xpadneo/" "$md_inst/"
cp "$md_build/VERSION" "$md_inst/"
local version="$(_version_xpadneo)"
sed "s/@DO_NOT_CHANGE@/$version/g" "$md_inst/dkms.conf.in" > "$md_inst/dkms.conf"
}
function build_xpadneo() {
dkmsManager install hid-xpadneo "$(_version_xpadneo)"
}
function remove_xpadneo() {
dkmsManager remove hid-xpadneo "$(_version_xpadneo)"
}
function configure_xpadneo() {
[[ "$md_mode" == "remove" ]] && return
dkmsManager reload hid-xpadneo "$(_version_xpadneo)"
}