linux-switch2
LOW
maintainer novakpetya
0 votes
scanned 2026-09-03 11:53:08.798154
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
3
pkgname=linux-switch2
4
pkgver=0.1.0
5
pkgrel=1
6
pkgdesc="Linux kernel drivers for Nintendo Switch 2 controllers"
7
arch=('x86_64')
8
url='https://github.com/novakpetya/linux-switch2'
9
license=('GPL-2.0-or-later')
10
11
depends=(
12
'linux'
13
'systemd'
14
)
15
16
makedepends=(
17
'git'
18
'linux-headers'
19
)
20
21
optdepends=(
22
'bluez-switch2: Bluetooth LE transport support for Nintendo Switch 2 Joy-Con controllers on Linux'
23
)
24
25
conflicts=(
26
'hid-switch2-dkms'
27
)
28
29
install=linux-switch2.install
30
31
options=('!strip')
32
33
source=(
34
"linux-switch2::git+https://github.com/novakpetya/linux-switch2.git"
35
)
36
37
sha256sums=(
38
'SKIP'
39
)
40
41
pkgver() {
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
49
build() {
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
61
package() {
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) | Severity | Rules |
|---|---|---|
| 2026-09-03 11:53:08 | Low | 1 |