whytime
LOW
maintainer arinerron
0 votes
scanned 2026-10-17 01:16:24.843905
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
7
pkgname=whytime
8
pkgver=0.1.1
9
pkgrel=1
10
pkgdesc="Explains where a command's wall-clock time went: off-CPU and on-CPU attribution from eBPF"
11
arch=(x86_64 aarch64)
12
url=https://github.com/Arinerron/whytime
13
license=(MIT)
14
depends=(glibc libgcc)
15
# clang compiles the BPF programs; the crate needs Rust >= 1.94.
16
makedepends=(cargo clang)
17
source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate")
18
sha256sums=('5f00f9fbeadef86a44d4c89249aaff1048afd9da08ad63fbd89ced13e2900467')
19
20
prepare() {
21
cd "$pkgname-$pkgver"
22
export RUSTUP_TOOLCHAIN=stable
23
cargo fetch --locked --target "$(rustc -vV | sed -n 's/^host: //p')"
24
}
25
26
build() {
27
cd "$pkgname-$pkgver"
28
export RUSTUP_TOOLCHAIN=stable
29
export CARGO_TARGET_DIR=target
30
cargo build --frozen --release
31
}
32
33
check() {
34
cd "$pkgname-$pkgver"
35
export RUSTUP_TOOLCHAIN=stable
36
export CARGO_TARGET_DIR=target
37
cargo test --frozen --release
38
}
39
40
package() {
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) | Severity | Rules |
|---|---|---|
| 2026-10-17 01:16:24 | Low | 1 |