linux-switch2

LOW
maintainer novakpetya 0 votes scanned 2026-09-03 11:53:08.798154
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: novakpetya
2
3pkgname=linux-switch2
4pkgver=0.1.0
5pkgrel=1
6pkgdesc="Linux kernel drivers for Nintendo Switch 2 controllers"
7arch=('x86_64')
8url='https://github.com/novakpetya/linux-switch2'
9license=('GPL-2.0-or-later')
10
11depends=(
12 'linux'
13 'systemd'
14)
15
16makedepends=(
17 'git'
18 'linux-headers'
19)
20
21optdepends=(
22 'bluez-switch2: Bluetooth LE transport support for Nintendo Switch 2 Joy-Con controllers on Linux'
23)
24
25conflicts=(
26 'hid-switch2-dkms'
27)
28
29install=linux-switch2.install
30
31options=('!strip')
32
33source=(
34 "linux-switch2::git+https://github.com/novakpetya/linux-switch2.git"
35)
36
37sha256sums=(
38 'SKIP'
39)
40
41pkgver() {
42 cd "$srcdir/linux-switch2"
43
44 printf 'r%s.%s' \
45 "$(git rev-list --count HEAD)" \
46 "$(git rev-parse --short HEAD)"
47}
48
49build() {
50 local _kernver
51 _kernver="$(uname -r)"
52
53 cd "$srcdir/linux-switch2"
54
55 make \
56 -C "/usr/lib/modules/${_kernver}/build" \
57 M="$PWD" \
58 modules
59}
60
61package() {
62 local _kernver
63 _kernver="$(uname -r)"
64
65 cd "$srcdir/linux-switch2"
66
67 # Kernel modules
68 install -Dm644 hid-switch2.ko \
69 "$pkgdir/usr/lib/modules/${_kernver}/updates/switch2/hid-switch2.ko"
70
71 install -Dm644 switch2-usb.ko \
72 "$pkgdir/usr/lib/modules/${_kernver}/updates/switch2/switch2-usb.ko"
73
74 # udev permissions for Joy-Con / Joy-Con 2 devices
75 install -Dm644 udev/70-switch2.rules \
76 "$pkgdir/usr/lib/udev/rules.d/70-switch2.rules"
77}
78

Scan history

Scanned at (UTC)SeverityRules
2026-09-03 11:53:08 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