xpadneo-dkms-trigger-rumble-hack

LOW
maintainer detian 0 votes scanned 2026-10-31 15:58:34.921556
View on AUR
Why flagged

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

PKGBUILD

1# Maintainer: detiam <dehe_tian at outlook dot com>
2# Contributor: marmis <tiagodepalves@gmail.com>
3# Contributor: Benzy
4# Contributor: Kudlaty
5# Contributor: "marmis" Tiago de Paula <tiagodepalves@gmail.com>
6# Contributor: vitor_hideyoshi <vitor.h.n.batista@gmail.com>
7# Contributor: katt <magunasu.b97@gmail.com>
8# Contributor: Yangtse Su <i@yangtse.me>
9
10pkgname=xpadneo-dkms-trigger-rumble-hack
11pkgdesc='Advanced Linux Driver for Xbox One Wireless Gamepad (with trigger rumble hack)'
12pkgver=0.11.pre
13pkgrel=1
14url='https://github.com/atar-axis/xpadneo'
15arch=(any)
16license=('GPL-2.0-only AND GPL-3.0-or-later')
17checkdepends=('dkms' 'fakeroot' 'LINUX-HEADERS')
18source=(
19 "xpadneo::git+${url}.git#commit=39625746fff63c997eeb53fe3a6fc1a3de08702e"
20 "0001-rumble-rework-trigger-rumble-modes-and-add-hack-mode.patch"
21)
22b2sums=('68ba38fd564f2c2ca2b5a1915c4c626b6089c8a12bf9775e17e2c6a52d595c87cd886dab46f3d03b57bde8e6acdfe4fde59af7ae7111cdf399cf716997c3cc96'
23 '35c6d0253f6509c1166aca1a24df8e9d3b95cb727b7ac72f2122e83fbb65799c7e53145fd5b6742a3388a45e4c808a85aad2982b6ab20ce89cc147733e144af8')
24
25prepare() {
26 cd "xpadneo"
27
28 # Apply patches
29 for patch in "${srcdir}"/0001-*.patch; do
30 echo "Applying patch: ${patch}"
31 patch -p1 < "${patch}"
32 done
33}
34
35build() {
36 cd "xpadneo"
37
38 echo "${pkgver}" > VERSION
39 make build
40}
41
42check() {
43 local kernels=(/usr/lib/modules/*/build)
44 if [[ ! -d ${kernels[0]} ]]; then
45 echo LINUX-HEADERS required to run check > /dev/stderr
46 return 0
47 fi
48
49 local kver=${kernels[0]}
50 kver=$(dirname "${kver}")
51 kver=$(basename "${kver}")
52 echo '##' Checking if module builds on Linux "${kver}"...
53 echo
54
55 mkdir -p check/dkms check/src
56 local dkms_options=(
57 --dkmstree "${PWD}/check/dkms"
58 --sourcetree "${PWD}/check/src"
59 -k "${kver}"
60 )
61
62 fakeroot dkms "${dkms_options[@]}" add "xpadneo/hid-xpadneo"
63 fakeroot dkms "${dkms_options[@]}" build "hid-xpadneo/${pkgver}"
64}
65
66package() {
67 depends=('dkms' 'bluez' 'bluez-utils')
68 provides=("xpadneo-dkms")
69 conflicts=("xpadneo-dkms")
70
71 cd "xpadneo"
72
73 # Add modprobe and udev files
74 make PREFIX="${pkgdir}" ETC_PREFIX='/usr/lib' install
75
76 # License applicability
77 local license_dir="${pkgdir}/usr/share/licenses/${pkgname}"
78 install -vD -t "${license_dir}/" -m644 LICENSE.md LICENSES/*.txt
79
80 # DKMS files
81 local target_dir="${pkgdir}/usr/src/hid-xpadneo-${pkgver}"
82 install -vD -t "${target_dir}" -m644 hid-xpadneo/{Makefile,dkms.conf}
83 install -vD -t "${target_dir}" -m755 hid-xpadneo/dkms.post_{install,remove}
84
85 # Module source
86 cd hid-xpadneo
87 find src/ -type f -not -name '.*' -not -name 'AGENTS.md' \
88 -exec install -vD -m644 {} -T "${target_dir}/{}" \;
89
90 # enable trigger rumble hack default
91 echo "options hid-xpadneo trigger_rumble_mode=3" >> "${pkgdir}/usr/lib/modprobe.d/xpadneo.conf"
92}
93

Scan history

Scanned at (UTC)SeverityRules
2026-10-31 15:58:34 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion