heft-git
LOW
maintainer gissf1
0 votes
scanned 2026-09-12 01:24:32.088301
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: Damon Blais <damon.blais@gmail.com>
2
3
pkgname=heft-git
4
pkgver=0.6.0.r0.g6f21906
5
pkgrel=1
6
pkgdesc="Read-only Linux TUI for application-weight process accounting (git)"
7
arch=('x86_64' 'aarch64')
8
url="https://github.com/Rethunk-Tech/heft"
9
license=('Apache-2.0')
10
# [profile.release] already strips, so there is nothing for makepkg to strip or
11
# to put in a debug package.
12
options=('!strip' '!debug')
13
depends=('gcc-libs' 'glibc')
14
makedepends=('cargo' 'git')
15
provides=("heft=$pkgver")
16
conflicts=('heft')
17
source=("$pkgname::git+$url.git")
18
sha256sums=('SKIP')
19
20
pkgver() {
21
cd "$pkgname"
22
git describe --long --abbrev=7 --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
23
}
24
25
prepare() {
26
cd "$pkgname"
27
# RUSTUP_TOOLCHAIN wins over the repository's rust-toolchain.toml, so a
28
# maintainer who has rustup builds with the same stable this does.
29
export RUSTUP_TOOLCHAIN=stable
30
cargo fetch --locked --target "$(rustc -vV | sed -n 's/^host: //p')"
31
}
32
33
build() {
34
cd "$pkgname"
35
export RUSTUP_TOOLCHAIN=stable CARGO_TARGET_DIR=target
36
# [profile.release] in Cargo.toml carries LTO, codegen-units = 1, strip and
37
# panic = abort. Do not restate them here.
38
cargo build --frozen --release
39
}
40
41
check() {
42
cd "$pkgname"
43
export RUSTUP_TOOLCHAIN=stable CARGO_TARGET_DIR=target
44
# The suite reads the builder's own /proc, which a build chroot has; the
45
# container and GPU paths are skipped when nothing answers them.
46
cargo test --frozen --release
47
}
48
49
package() {
50
cd "$pkgname"
51
# Apache-2.0 is an SPDX common licence shipped in /usr/share/licenses/spdx
52
# by the `licenses` package, so this installs no copy of it.
53
install -Dm0755 target/release/heft "$pkgdir/usr/bin/heft"
54
55
# build.rs writes the completions and man page under a hashed OUT_DIR.
56
# Newest heft.1 rather than the first directory named assets: an earlier
57
# crate's build dir survives in target/ and would hand back stale files.
58
local man assets
59
man=$(find target/release/build -name heft.1 -printf '%T@ %p\n' | sort -rn | head -1 | cut -d' ' -f2-)
60
assets=$(dirname "$man")
61
install -Dm0644 "$assets/heft.bash" "$pkgdir/usr/share/bash-completion/completions/heft"
62
install -Dm0644 "$assets/_heft" "$pkgdir/usr/share/zsh/site-functions/_heft"
63
install -Dm0644 "$assets/heft.fish" "$pkgdir/usr/share/fish/vendor_completions.d/heft.fish"
64
install -Dm0644 "$assets/heft.1" "$pkgdir/usr/share/man/man1/heft.1"
65
}
66
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-12 01:24:32 | Low | 1 |