ch57x-keyboard-tool
MEDIUM
maintainer alfrednewman
0 votes
scanned 2026-08-29 11:38:52.172500
Why flagged
This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.
Triggered rules
Medium
Recently orphaned & re-adopted
orphaned_readopted
This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.
PKGBUILD
1
# Maintainer: Good Vibes <good_vibes@fastmail.com>
2
pkgname=ch57x-keyboard-tool
3
pkgver=1.6.2
4
pkgrel=1
5
pkgdesc="Command-line tool for programming ch57x and ch55x macro keyboards like ch552 or ch552g"
6
arch=('x86_64' 'aarch64')
7
url="https://github.com/kriomant/ch57x-keyboard-tool"
8
license=('MIT' 'Apache-2.0')
9
depends=('libusb')
10
makedepends=('cargo')
11
keywords=('keyboard' 'macro' 'keypad' 'ch57x' 'ch55x' 'ch552' 'ch552g' 'ch554' 'hotkey' 'aliexpress')
12
source=("$pkgname-$pkgver.tar.gz::https://github.com/kriomant/ch57x-keyboard-tool/archive/refs/tags/v$pkgver.tar.gz"
13
"50-ch57x-keyboard.rules")
14
sha256sums=('bd8ba2b59987a29d4ad4afcdf90b79d54d200d3ab803711d28851222f81bbfb5'
15
'26de73e625f2ce8d3b1f753378a40f754c1c69e32e71900fd0e9298ee792075f')
16
17
prepare() {
18
cd "$pkgname-$pkgver"
19
export RUSTUP_TOOLCHAIN=stable
20
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
21
}
22
23
build() {
24
cd "$pkgname-$pkgver"
25
export RUSTUP_TOOLCHAIN=stable
26
export CARGO_TARGET_DIR=target
27
cargo build --frozen --release --all-features
28
}
29
30
check() {
31
cd "$pkgname-$pkgver"
32
export RUSTUP_TOOLCHAIN=stable
33
export CARGO_TARGET_DIR=target
34
cargo test --frozen --all-features
35
}
36
37
package() {
38
cd "$pkgname-$pkgver"
39
install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
40
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
41
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
42
install -Dm644 example-mapping.yaml "$pkgdir/usr/share/doc/$pkgname/example-mapping.yaml"
43
44
# Install udev rules for non-root access
45
install -Dm644 "$srcdir/50-ch57x-keyboard.rules" "$pkgdir/usr/lib/udev/rules.d/50-ch57x-keyboard.rules"
46
}
47
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-29 11:38:52 | Medium | 1 |
| 2026-06-18 16:11:54 | Clean | 0 |