whytime

LOW
maintainer arinerron 0 votes scanned 2026-10-17 01:16:24.843905
View on AUR
Why flagged

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

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.

PKGBUILD

1# Maintainer: Aaron Esau <git at aaronesau dot com>
2#
3# Builds the crates.io crate (glibc, dynamically linked). The crate carries no man pages
4# (the repository's xtask renders them at release time); whytime-bin installs them.
5# whytime needs Linux >= 5.18 with BTF and CAP_BPF + CAP_PERFMON (sudo, or setcap).
6
7pkgname=whytime
8pkgver=0.1.1
9pkgrel=1
10pkgdesc="Explains where a command's wall-clock time went: off-CPU and on-CPU attribution from eBPF"
11arch=(x86_64 aarch64)
12url=https://github.com/Arinerron/whytime
13license=(MIT)
14depends=(glibc libgcc)
15# clang compiles the BPF programs; the crate needs Rust >= 1.94.
16makedepends=(cargo clang)
17source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate")
18sha256sums=('5f00f9fbeadef86a44d4c89249aaff1048afd9da08ad63fbd89ced13e2900467')
19
20prepare() {
21 cd "$pkgname-$pkgver"
22 export RUSTUP_TOOLCHAIN=stable
23 cargo fetch --locked --target "$(rustc -vV | sed -n 's/^host: //p')"
24}
25
26build() {
27 cd "$pkgname-$pkgver"
28 export RUSTUP_TOOLCHAIN=stable
29 export CARGO_TARGET_DIR=target
30 cargo build --frozen --release
31}
32
33check() {
34 cd "$pkgname-$pkgver"
35 export RUSTUP_TOOLCHAIN=stable
36 export CARGO_TARGET_DIR=target
37 cargo test --frozen --release
38}
39
40package() {
41 cd "$pkgname-$pkgver"
42 local bin=target/release/whytime
43 install -Dm755 "$bin" -t "$pkgdir/usr/bin"
44 "$bin" completions bash | install -Dm644 /dev/stdin "$pkgdir/usr/share/bash-completion/completions/whytime"
45 "$bin" completions zsh | install -Dm644 /dev/stdin "$pkgdir/usr/share/zsh/site-functions/_whytime"
46 "$bin" completions fish | install -Dm644 /dev/stdin "$pkgdir/usr/share/fish/vendor_completions.d/whytime.fish"
47 install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
48}
49

Scan history

Scanned at (UTC)SeverityRules
2026-10-17 01:16:24 Low 1

Report a package

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

0 / 4000
Your suggestion