ccusage-git
CLEAN
maintainer yobson
0 votes
scanned 2026-08-21 00:01:35.148225
Triggered rules
Clean
AI review downgraded a static finding
llm_review
The static rules flagged this LOW, but an AI model (qwen/qwen3-235b-a22b-2507) reviewed the full PKGBUILD and judged it CLEAN (confidence 95%): The package builds from the project's own Git repository, uses standard Rust build practices, and installs only the compiled binary and license; no remote code execution or untrusted prebuilt binaries are involved.
1 higher static finding superseded - not the current verdict (shown for transparency)
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: yobson <aur@yobson.xyz>
2
pkgname=ccusage-git
3
pkgver=20.0.20.r101.g813d801
4
pkgrel=1
5
pkgdesc='Analyze coding (agent) CLI token usage and costs from local data.'
6
arch=(x86_64 aarch64)
7
url='https://github.com/ryoppippi/ccusage'
8
license=(MIT)
9
depends=(gcc-libs)
10
makedepends=(git cargo)
11
options=(!lto)
12
source=("${pkgname}::git+${url}.git")
13
cksums=(SKIP)
14
conflicts=(ccusage)
15
provides=(ccusage)
16
17
pkgver() {
18
cd "${srcdir}/${pkgname}"
19
git describe --long --abbrev=7 --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
20
}
21
22
prepare() {
23
cd "${srcdir}/${pkgname}/rust"
24
25
export RUSTUP_TOOLCHAIN=stable
26
27
cargo fetch --locked --target host-tuple
28
}
29
30
build() {
31
cd "${srcdir}/${pkgname}/rust"
32
33
export RUSTUP_TOOLCHAIN=stable
34
export CARGO_TARGET_DIR=target
35
36
cargo build --release --frozen --all-features
37
}
38
39
package() {
40
cd "${srcdir}/${pkgname}"
41
42
install -Dm755 rust/target/release/ccusage "${pkgdir}/usr/bin/ccusage"
43
install -Dm644 apps/ccusage/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
44
}
45
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-21 00:01:35 | Clean | 2 |
| 2026-08-20 23:13:41 | Low | 1 |