recoil16-dkms
LOW
maintainer amad3v
0 votes
scanned 2026-09-25 21:13:17.793975
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: amad3v
2
3
pkgname=recoil16-dkms
4
_srcname=recoil16
5
pkgver=1.0.0
6
pkgrel=1
7
pkgdesc="Drivers and recoil16ctl for the PCSpecialist Recoil 16 AMD (TUXEDO Stellaris 16 Gen7): keyboard backlight, lightbar, power profiles, charge limit, Copilot key"
8
arch=('x86_64')
9
url="https://github.com/amad3v/recoil16"
10
license=('GPL-2.0-only' 'GPL-2.0-or-later')
11
depends=('dkms' 'glibc' 'libgcc')
12
makedepends=('cargo')
13
optdepends=('linux-headers: build the modules for the linux kernel'
14
'libkscreen: kscreen-doctor for recoil16ctl screen rotate (KDE Plasma)')
15
conflicts=('recoil16-dkms-git')
16
install=recoil16.install
17
source=("$_srcname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
18
sha256sums=('6698c0c0398c0d5e1878f661b177546f8d728440b2cfb12bee779a8a42efef0c')
19
20
prepare() {
21
cd "$_srcname-$pkgver/recoil16ctl" || return
22
export RUSTUP_TOOLCHAIN=stable
23
cargo fetch --locked --target "$(rustc --print host-tuple)"
24
}
25
26
build() {
27
cd "$_srcname-$pkgver/recoil16ctl" || return
28
export RUSTUP_TOOLCHAIN=stable
29
export CARGO_TARGET_DIR=target
30
cargo build --frozen --release
31
}
32
33
check() {
34
cd "$_srcname-$pkgver/recoil16ctl" || return
35
export RUSTUP_TOOLCHAIN=stable
36
cargo test --frozen
37
}
38
39
package() {
40
cd "$_srcname-$pkgver" || return
41
# shellcheck disable=SC2154 # pkgdir is set by makepkg for package()
42
local src="$pkgdir/usr/src/$_srcname-$pkgver"
43
44
install -d "$src"
45
cp -r --no-preserve=ownership Kbuild ite8291-mono ite8233-lightbar copilot-rctrl uniwill-laptop-pcs "$src/"
46
rm -rf "$src/uniwill-laptop-pcs/patches"
47
sed "s/^PACKAGE_VERSION=.*/PACKAGE_VERSION=\"$pkgver\"/" dkms.conf >"$src/dkms.conf"
48
49
local ctl=recoil16ctl/target/release/recoil16ctl
50
install -Dm755 "$ctl" "$pkgdir/usr/bin/recoil16ctl"
51
install -d "$pkgdir/usr/share/bash-completion/completions" \
52
"$pkgdir/usr/share/zsh/site-functions" \
53
"$pkgdir/usr/share/fish/vendor_completions.d"
54
"$ctl" completions bash >"$pkgdir/usr/share/bash-completion/completions/recoil16ctl"
55
"$ctl" completions zsh >"$pkgdir/usr/share/zsh/site-functions/_recoil16ctl"
56
"$ctl" completions fish >"$pkgdir/usr/share/fish/vendor_completions.d/recoil16ctl.fish"
57
"$ctl" man "$pkgdir/usr/share/man/man1"
58
install -Dm644 man/recoil16.7 -t "$pkgdir/usr/share/man/man7/"
59
60
# KDE: default global shortcut Sc -> recoil16ctl screen rotate
61
install -Dm644 data/kglobalaccel/recoil16.desktop -t "$pkgdir/usr/share/kglobalaccel/"
62
63
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
64
}
65
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-25 21:13:17 | Low | 1 |