argc-completions-git

LOW
maintainer Ataraxy 0 votes scanned 2026-09-09 13:19:49.747679
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: Tom Hale <tom at hale dot ee>
2# shellcheck shell=bash disable=SC2034,SC2154,SC2164 # var unused / var not assigned / cd without || exit
3
4pkgname=argc-completions-git
5_pkgname=argc-completions
6_repo=sigoden/argc-completions
7pkgver=r613.a992215
8pkgrel=1
9pkgdesc="Shell completions for 1000+ commands, powered by argc (git)"
10arch=('any')
11url="https://github.com/${_repo}"
12license=('MIT')
13depends=('argc' 'bash' 'gawk')
14# yq is needed only by a subset of dynamic completions (the nix module and
15# some cargo-plugin scripts). Both providers ship /usr/bin/yq and conflict
16# with each other, and depends has no OR operator, so either is accepted here.
17optdepends=('yq: dynamic completions for nix and some cargo plugins (or go-yq)'
18 'go-yq: dynamic completions for nix and some cargo plugins (or yq)')
19makedepends=('git')
20# No provides()/conflicts(): no stable arc-completions package exists.
21source=("git+https://github.com/${_repo}.git"
22 'fix-gawk-interval-space.patch')
23b2sums=('SKIP'
24 '13d76849ca9f10d288641954b213dc7ef86e52a10bd39ad1e98ed44ff5100870e0bb7357fac9074a7451d9224b46840de3f05331eb0cf8dc8791ee964f7bdae3')
25install="${pkgname}.install"
26
27pkgver() {
28 cd "${_pkgname}"
29 # No tags upstream; fall back to commit count + short sha.
30 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
31}
32
33prepare() {
34 cd "${_pkgname}"
35 # Upstream issue #74: drop the space from the {4, } interval, which gawk
36 # rejects ('invalid contents of {}'). Remove when fixed upstream.
37 patch -p1 < "${srcdir}/fix-gawk-interval-space.patch"
38}
39
40package() {
41 cd "${_pkgname}"
42 local _root="${pkgdir}/usr/share/argc-completions"
43 install -d "${_root}"
44 # scripts/setup-shell.sh expects $ROOT/{completions,bin}; bin/ holds
45 # upstream-downloaded argc+yq binaries which we do NOT ship (see depends).
46 # Never inherit modes from git: only scripts/*.sh are executable (run
47 # directly by users); everything else ships 644. Symlinks pass through.
48 local _dir
49 for _dir in completions scripts src utils docs; do
50 find "${_dir}" -type d -exec install -dm755 "${_root}/{}" \;
51 find "${_dir}" -type l -exec cp -P {} "${_root}/{}" \;
52 if [[ ${_dir} == scripts ]]; then
53 find "${_dir}" -type f -name '*.sh' -exec install -Dm755 {} "${_root}/{}" \;
54 find "${_dir}" -type f ! -name '*.sh' -exec install -Dm644 {} "${_root}/{}" \;
55 else
56 find "${_dir}" -type f -exec install -Dm644 {} "${_root}/{}" \;
57 fi
58 done
59 install -Dm644 Argcfile.sh "${_root}/Argcfile.sh"
60 install -Dm644 README.md "${_root}/README.md"
61 install -Dm644 MANIFEST.md "${_root}/MANIFEST.md"
62 install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
63}
64# vim:set ts=2 sw=2 et ft=PKGBUILD:
65

Scan history

Scanned at (UTC)SeverityRules
2026-09-09 13:19:49 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