battery-log-git

LOW
maintainer jaehho 0 votes scanned 2026-10-17 00:21:55.226236
View on AUR
Why flagged

The package builds from a legitimate Git source hosted on GitHub under the maintainer's account, which is normal for AUR packages; the low severity is due to few votes and recent upload, but the build process is transparent and installs only compiled binaries and static assets from the project's own source.

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 builds from a legitimate Git source hosted on GitHub under the maintainer's account, which is normal for AUR packages; the low severity is due to few votes and recent upload, but the build process is transparent and installs only compiled binaries and static assets from the project's own source.

PKGBUILD

1# Maintainer: Jaeho Cho <jaeho2025@gmail.com>
2pkgname=battery-log-git
3_pkgname=battery-log
4pkgver=0.1.0.r8.ga3e7a3f
5pkgrel=1
6pkgdesc="What the battery did, and why: a sampler daemon and a desktop dashboard"
7arch=('x86_64')
8url="https://github.com/jaehho/battery-log"
9license=('MIT')
10depends=('webkit2gtk-4.1' 'gtk3')
11makedepends=('git' 'rustup')
12optdepends=('power-profiles-daemon: record which power profile each sample was taken under')
13provides=('battery-log')
14conflicts=('battery-log')
15options=('!lto' '!debug')
16source=("git+https://github.com/jaehho/battery-log.git")
17sha256sums=('SKIP')
18
19pkgver() {
20 cd "$_pkgname"
21 local desc
22 if desc=$(git describe --long --tags --abbrev=7 2>/dev/null); then
23 # tagged: v1.2.3-4-gabcdef -> 1.2.3.r4.gabcdef
24 printf '%s' "$desc" | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
25 else
26 printf '0.1.0.r%s.g%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
27 fi
28}
29
30build() {
31 cd "$_pkgname"
32 export RUSTUP_TOOLCHAIN=stable
33 # Keep the volatile build path out of the binary (reproducible, no $srcdir leak).
34 export RUSTFLAGS="${RUSTFLAGS:-} --remap-path-prefix=$srcdir=/"
35 # The frontend is static and embedded by tauri-build at compile time, so a
36 # plain cargo build produces a self-contained binary -- no tauri-cli, no npm.
37 cargo build --release --locked --workspace
38}
39
40check() {
41 cd "$_pkgname"
42 cargo test --release --locked -p battery-log-core
43}
44
45package() {
46 cd "$_pkgname"
47 install -Dm755 target/release/battery-log "$pkgdir/usr/bin/battery-log"
48 install -Dm755 target/release/battery-logd "$pkgdir/usr/bin/battery-logd"
49 install -Dm644 packaging/battery-logd.service \
50 "$pkgdir/usr/lib/systemd/user/battery-logd.service"
51 install -Dm644 packaging/battery-log.desktop \
52 "$pkgdir/usr/share/applications/battery-log.desktop"
53 install -Dm644 src-tauri/icons/128x128.png \
54 "$pkgdir/usr/share/icons/hicolor/128x128/apps/battery-log.png"
55 install -Dm644 src-tauri/icons/32x32.png \
56 "$pkgdir/usr/share/icons/hicolor/32x32/apps/battery-log.png"
57 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
58}
59

Scan history

Scanned at (UTC)SeverityRules
2026-10-17 00:21:55 Low 2
2026-10-16 03:14:05 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