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>
2
pkgname=sccache-shims
3
pkgver=1.1
4
pkgrel=1
5
pkgdesc="Create sccache shims for every detected C/C++/Rust/CUDA compiler"
6
arch=('any')
7
license=('MIT')
8
depends=('sccache')
9
provides=('sccache-shims')
10
options=('!strip' '!debug')
11
12
package() {
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'
37
export PATH="/usr/lib/sccache-shims/bin:${PATH}"
38
EOF
39
}
40
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-18 13:39:48 | LOW | 1 |