sccache-shims

maintainer NoelJacob · 0 votes · scanned 2026-08-18 13:39:48.676217
LOW
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: Noel Jacob <noeljacob91 at gmail dot com>
2pkgname=sccache-shims
3pkgver=1.1
4pkgrel=1
5pkgdesc="Create sccache shims for every detected C/C++/Rust/CUDA compiler"
6arch=('any')
7license=('MIT')
8depends=('sccache')
9provides=('sccache-shims')
10options=('!strip' '!debug')
11
12package() {
13 local shim_dir="${pkgdir}/usr/lib/sccache-shims/bin"
14 install -dm755 "$shim_dir"
15
16 # Detect every compiler binary in /usr/bin, including cross-compiler
17 # triplets of any ABI (gnu, musl, eabi, mingw, android, etc.)
18 local compilers
19 compilers=$(find /usr/bin -maxdepth 1 -printf '%f\n' \
20 | grep -P '(^|gnu-|musl-|eabi-|mingw-|android-)(gcc|g\+\+|clang|clang\+\+|cc|c\+\+|nvcc|cl)(-[0-9.]+)?$')
21
22 if [[ -z "$compilers" ]]; then
23 error "sccache-shims: no compilers detected"
24 return 1
25 fi
26
27 local compiler
28 while IFS= read -r compiler; do
29 [[ -z "$compiler" ]] && continue
30 ln -sf /usr/bin/sccache "${shim_dir}/${compiler}"
31 msg2 "sccache-shims: created shim for ${compiler}"
32 done <<< "$compilers"
33
34 install -dm755 "${pkgdir}/etc/profile.d"
35
36 cat > "${pkgdir}/etc/profile.d/sccache-shims.sh" <<'EOF'
37export PATH="/usr/lib/sccache-shims/bin:${PATH}"
38EOF
39}
40

Scan history

Scanned at (UTC)SeverityRules
2026-08-18 13:39:48 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