ak820
LOW
maintainer Deddroid
0 votes
scanned 2026-10-20 09:27:54.737837
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: deddroid <deddo9412@gmail.com>
2
pkgname=ak820
3
pkgver=0.1.1
4
pkgrel=1
5
pkgdesc="Configurator for the AJAZZ AK820 Pro keyboard: lighting, per-key RGB, key remapping, macros, TFT screen (GUI + CLI)"
6
arch=('x86_64' 'aarch64')
7
url="https://github.com/deddroid/ak820-rs"
8
license=('MIT')
9
depends=('gcc-libs' 'glibc' 'systemd-libs' 'hicolor-icon-theme'
10
'libglvnd' 'libxkbcommon' 'wayland' 'libx11' 'libxcursor' 'libxi' 'libxrandr')
11
makedepends=('cargo')
12
optdepends=('xdg-desktop-portal: file picker in the GUI'
13
'gnome-shell-extension-appindicator: tray icon on GNOME')
14
conflicts=('ak820-bin')
15
options=('!lto')
16
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
17
sha256sums=('2bba4a629306911c96950dbdcc840a00fb95529993410e534ebeda709df147c6')
18
19
prepare() {
20
cd "ak820-rs-$pkgver"
21
export RUSTUP_TOOLCHAIN=stable
22
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
23
}
24
25
build() {
26
cd "ak820-rs-$pkgver"
27
export RUSTUP_TOOLCHAIN=stable
28
export CARGO_TARGET_DIR=target
29
# Keep build paths out of the binaries.
30
export RUSTFLAGS="$RUSTFLAGS --remap-path-prefix=$srcdir=/build"
31
cargo build --frozen --release
32
}
33
34
check() {
35
cd "ak820-rs-$pkgver"
36
export RUSTUP_TOOLCHAIN=stable
37
cargo test --frozen --release --lib
38
}
39
40
package() {
41
cd "ak820-rs-$pkgver"
42
install -Dm755 target/release/ak820 "$pkgdir/usr/bin/ak820"
43
install -Dm755 target/release/ak820-gui "$pkgdir/usr/bin/ak820-gui"
44
install -Dm644 packaging/linux/ak820.desktop "$pkgdir/usr/share/applications/ak820.desktop"
45
for s in 32 48 64 128 256; do
46
install -Dm644 "assets/icon-$s.png" "$pkgdir/usr/share/icons/hicolor/${s}x${s}/apps/ak820.png"
47
done
48
# Lets the logged-in user open the keyboard without root.
49
install -Dm644 udev/70-ajazz-ak820.rules "$pkgdir/usr/lib/udev/rules.d/70-ajazz-ak820.rules"
50
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
51
install -Dm644 README.md docs/PROTOCOL.md examples/profile.toml -t "$pkgdir/usr/share/doc/$pkgname/"
52
}
53
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-20 09:27:54 | Low | 1 |