aurgus-git

LOW
maintainer prietus 0 votes scanned 2026-11-04 22:08:15.051999
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: prietus <prietus@live.com>
2pkgname=aurgus-git
3pkgver=0.1.0.r0.g4198f7a
4pkgrel=1
5pkgdesc="AUR helper that audits PKGBUILDs before building them (git version)"
6arch=('x86_64' 'aarch64')
7url="https://github.com/prietus/aurgus"
8license=('GPL-3.0-or-later')
9depends=('pacman' 'git' 'coreutils')
10makedepends=('cargo')
11optdepends=('sudo: privilege elevation'
12 'doas: privilege elevation'
13 'gnupg: import PGP keys needed to verify sources')
14provides=("${pkgname%-git}")
15conflicts=("${pkgname%-git}")
16source=("${pkgname%-git}::git+${url}.git")
17sha256sums=('SKIP')
18
19pkgver() {
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
29prepare() {
30 cd "${pkgname%-git}"
31 export RUSTUP_TOOLCHAIN=stable
32 cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
33}
34
35build() {
36 cd "${pkgname%-git}"
37 export RUSTUP_TOOLCHAIN=stable
38 export CARGO_TARGET_DIR=target
39 cargo build --frozen --release
40}
41
42check() {
43 cd "${pkgname%-git}"
44 export RUSTUP_TOOLCHAIN=stable
45 cargo test --frozen --release
46}
47
48package() {
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)SeverityRules
2026-11-04 22:08:15 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