heft

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

Scan history

Scanned at (UTC)SeverityRules
2026-09-12 03:10:21 Low 1
2026-09-12 01:24:32 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