ch57x-keyboard-tool

MEDIUM
maintainer alfrednewman 0 votes scanned 2026-08-29 11:38:52.172500
View on AUR
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>
2pkgname=ch57x-keyboard-tool
3pkgver=1.6.2
4pkgrel=1
5pkgdesc="Command-line tool for programming ch57x and ch55x macro keyboards like ch552 or ch552g"
6arch=('x86_64' 'aarch64')
7url="https://github.com/kriomant/ch57x-keyboard-tool"
8license=('MIT' 'Apache-2.0')
9depends=('libusb')
10makedepends=('cargo')
11keywords=('keyboard' 'macro' 'keypad' 'ch57x' 'ch55x' 'ch552' 'ch552g' 'ch554' 'hotkey' 'aliexpress')
12source=("$pkgname-$pkgver.tar.gz::https://github.com/kriomant/ch57x-keyboard-tool/archive/refs/tags/v$pkgver.tar.gz"
13 "50-ch57x-keyboard.rules")
14sha256sums=('bd8ba2b59987a29d4ad4afcdf90b79d54d200d3ab803711d28851222f81bbfb5'
15 '26de73e625f2ce8d3b1f753378a40f754c1c69e32e71900fd0e9298ee792075f')
16
17prepare() {
18 cd "$pkgname-$pkgver"
19 export RUSTUP_TOOLCHAIN=stable
20 cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
21}
22
23build() {
24 cd "$pkgname-$pkgver"
25 export RUSTUP_TOOLCHAIN=stable
26 export CARGO_TARGET_DIR=target
27 cargo build --frozen --release --all-features
28}
29
30check() {
31 cd "$pkgname-$pkgver"
32 export RUSTUP_TOOLCHAIN=stable
33 export CARGO_TARGET_DIR=target
34 cargo test --frozen --all-features
35}
36
37package() {
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)SeverityRules
2026-08-29 11:38:52 Medium 1
2026-06-18 16:11:54 Clean 0

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion