hp-charge-limit-rs-bin

LOW
maintainer kralonur 0 votes scanned 2026-10-27 00:23:28.674093
View on AUR
Why flagged

The package installs a prebuilt binary from the project's official GitHub releases, which is a normal practice for Rust projects; the binary is not executed at build time, and the source is verifiable via checksums, making the risk low despite the flagged low votes and recent upload.

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.

Low AI review llm_review

An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is LOW (confidence 95%): The package installs a prebuilt binary from the project's official GitHub releases, which is a normal practice for Rust projects; the binary is not executed at build time, and the source is verifiable via checksums, making the risk low despite the flagged low votes and recent upload.

PKGBUILD

1pkgname=hp-charge-limit-rs-bin
2pkgver=0.3.0
3pkgrel=1
4pkgdesc="Battery charge limiter for HP laptops via ACPI WMI"
5url="https://github.com/kralonur/hp-charge-limit-rs"
6arch=('x86_64' 'aarch64')
7license=('MIT OR Apache-2.0')
8depends=('acpi_call')
9provides=("hp-charge-limit-rs=$pkgver")
10conflicts=('hp-charge-limit-rs')
11backup=('etc/hp-charge-limit-rs.conf')
12options=('!debug' '!strip')
13
14source_x86_64=("$url/releases/download/v$pkgver/hp-charge-limit-rs-v$pkgver-x86_64-unknown-linux-musl.tar.gz")
15sha256sums_x86_64=('a13be5208bde2811545466e07c0a83f3e6d30254201978add67f94d8f51e0a9d')
16sha256sums_aarch64=('799fa1ef0a62dc48f84d300a551da226349a8d71d624e5d433bddc785ad00819')
17source_aarch64=("$url/releases/download/v$pkgver/hp-charge-limit-rs-v$pkgver-aarch64-unknown-linux-musl.tar.gz")
18
19_install_completions() {
20 local _cmd="$1"
21
22 "$pkgdir/usr/bin/$_cmd" completions bash > "$srcdir/$_cmd.bash"
23 "$pkgdir/usr/bin/$_cmd" completions zsh > "$srcdir/$_cmd.zsh"
24 "$pkgdir/usr/bin/$_cmd" completions fish > "$srcdir/$_cmd.fish"
25 "$pkgdir/usr/bin/$_cmd" completions elvish > "$srcdir/$_cmd.elvish"
26 "$pkgdir/usr/bin/$_cmd" completions powershell > "$srcdir/$_cmd.ps1"
27
28 install -Dm644 "$srcdir/$_cmd.bash" "$pkgdir/usr/share/bash-completion/completions/$_cmd"
29 install -Dm644 "$srcdir/$_cmd.zsh" "$pkgdir/usr/share/zsh/site-functions/_$_cmd"
30 install -Dm644 "$srcdir/$_cmd.fish" "$pkgdir/usr/share/fish/vendor_completions.d/$_cmd.fish"
31 install -Dm644 "$srcdir/$_cmd.elvish" "$pkgdir/usr/share/elvish/lib/$_cmd.elv"
32 install -Dm644 "$srcdir/$_cmd.ps1" "$pkgdir/usr/share/powershell/Completions/$_cmd.ps1"
33}
34
35package() {
36 cd "$srcdir/hp-charge-limit-rs-v$pkgver-$CARCH-unknown-linux-musl"
37 install -Dm755 hp-charge-limit-rs "$pkgdir/usr/bin/hp-charge-limit-rs"
38 install -Dm644 packaging/hp-charge-limit-rs.service \
39 "$pkgdir/usr/lib/systemd/system/hp-charge-limit-rs.service"
40 install -Dm644 packaging/hp-charge-limit-rs.conf "$pkgdir/etc/hp-charge-limit-rs.conf"
41 install -Dm644 packaging/io.github.kralonur.HpChargeLimit.conf \
42 "$pkgdir/usr/share/dbus-1/system.d/io.github.kralonur.HpChargeLimit.conf"
43 install -Dm644 packaging/io.github.kralonur.HpChargeLimit.Notify.desktop \
44 "$pkgdir/etc/xdg/autostart/io.github.kralonur.HpChargeLimit.Notify.desktop"
45 install -Dm644 LICENSE-MIT "$pkgdir/usr/share/licenses/$pkgname/LICENSE-MIT"
46 install -Dm644 LICENSE-APACHE "$pkgdir/usr/share/licenses/$pkgname/LICENSE-APACHE"
47 _install_completions hp-charge-limit-rs
48}
49

Scan history

Scanned at (UTC)SeverityRules
2026-10-27 00:23:28 Low 2
2026-10-26 19:45:59 Low 2

Report a package

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

0 / 4000
Your suggestion