aurgus-git
LOW
maintainer prietus
0 votes
scanned 2026-11-04 22:08:15.051999
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: prietus <prietus@live.com>
2
pkgname=aurgus-git
3
pkgver=0.1.0.r0.g4198f7a
4
pkgrel=1
5
pkgdesc="AUR helper that audits PKGBUILDs before building them (git version)"
6
arch=('x86_64' 'aarch64')
7
url="https://github.com/prietus/aurgus"
8
license=('GPL-3.0-or-later')
9
depends=('pacman' 'git' 'coreutils')
10
makedepends=('cargo')
11
optdepends=('sudo: privilege elevation'
12
'doas: privilege elevation'
13
'gnupg: import PGP keys needed to verify sources')
14
provides=("${pkgname%-git}")
15
conflicts=("${pkgname%-git}")
16
source=("${pkgname%-git}::git+${url}.git")
17
sha256sums=('SKIP')
18
19
pkgver() {
20
cd "${pkgname%-git}"
21
local v
22
if v=$(git describe --long --tags 2>/dev/null); then
23
printf '%s' "$v" | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
24
else
25
printf '0.1.0.r%s.g%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
26
fi
27
}
28
29
prepare() {
30
cd "${pkgname%-git}"
31
export RUSTUP_TOOLCHAIN=stable
32
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
33
}
34
35
build() {
36
cd "${pkgname%-git}"
37
export RUSTUP_TOOLCHAIN=stable
38
export CARGO_TARGET_DIR=target
39
cargo build --frozen --release
40
}
41
42
check() {
43
cd "${pkgname%-git}"
44
export RUSTUP_TOOLCHAIN=stable
45
cargo test --frozen --release
46
}
47
48
package() {
49
cd "${pkgname%-git}"
50
install -Dm755 "target/release/${pkgname%-git}" "$pkgdir/usr/bin/${pkgname%-git}"
51
install -Dm644 completions/aurgus.bash "$pkgdir/usr/share/bash-completion/completions/aurgus"
52
install -Dm644 completions/_aurgus "$pkgdir/usr/share/zsh/site-functions/_aurgus"
53
install -Dm644 completions/aurgus.fish "$pkgdir/usr/share/fish/vendor_completions.d/aurgus.fish"
54
install -Dm644 README.md "$pkgdir/usr/share/doc/${pkgname%-git}/README.md"
55
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname%-git}/LICENSE"
56
}
57
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-04 22:08:15 | Low | 1 |