smokinguns-git
The package downloads a data zip from the project's official domain, which is not on the standard whitelist but is plausibly legitimate; the source is used for non-executable game assets, posing minimal risk.
Triggered rules
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads a data zip from the project's official domain, which is not on the standard whitelist but is plausibly legitimate; the source is used for non-executable game assets, posing minimal risk.
1 higher static finding superseded - not the current verdict (shown for transparency)
source_untrusted_domain
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
-
PKGBUILD:20
"$pkgname.data.zip::https://www.smokin-guns.org/downloads/Smokin_Guns_1.1.zip"
PKGBUILD
1 offending line(s) highlighted# Maintainer: Lucki <https://aur.archlinux.org/account/Lucki/>
# Contributor: hildigerr <https://aur.archlinux.org/account/hildigerr>
# Contributor: leper <blubblub@mail.ru>
# shellcheck disable=SC2034,SC2154,SC2148
pkgname=smokinguns-git
_pkgname=${pkgname%-git}
pkgver=1.1.r859.gf5d9ecf2
pkgrel=9
pkgdesc='A semi-realistic simulation of the old west great atmosphere built on id Tech 3.'
url="https://www.smokin-guns.org"
arch=('i686' 'x86_64')
license=('GPL2')
changelog=.CHANGELOG
depends=('freetype2' 'hicolor-icon-theme' 'libgl' 'libjpeg-turbo' 'libogg' 'sdl' 'speex' 'zlib')
makedepends=('git' 'glu' 'openal' 'gcc14')
conflicts=('smokinguns-bin' 'smokinguns' 'smokinguns-data')
provides=('smokinguns-data' 'smokinguns')
source=("$pkgname::git+https://github.com/smokin-guns/SmokinGuns.git"
"$pkgname.data.zip::https://www.smokin-guns.org/downloads/Smokin_Guns_1.1.zip"
"$pkgname.desktop"
"$pkgname-#11-build-fail.patch")
sha512sums=('SKIP'
'51954ce00cccd9eb95a10491f0fcdea2d024058da11cbda7ee56c6369e8bc101d89ed95549cf4255393c3e1bec4585be12937e7ed7b20ff4cc0ce96685a5ce72'
'37aefb4a9e811644af09bbbfdb35d6a2572bc70b6fe8ff0078330d1070e73ebcd18f2e656156f1e3d92b2ec7f6fdffe63b2c66018b449d8b5aa6402b3eb24d7d'
'4ad6e8c1775ccce791810349febfbcc9235bb4cc1310d0b5eb61ea522558c32457e192ab1b9860215d72441c708638cfa845af56e4749a0bfeecaa5bf120d051')
pkgver() {
cd "$pkgname" || exit
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "$pkgname" || exit
{
# Set basedir
echo "DEFAULT_BASEDIR = /usr/share/$_pkgname"
# Use system libraries
echo "USE_INTERNAL_ZLIB=0"
echo "USE_INTERNAL_JPEG=0"
echo "USE_INTERNAL_SPEEX=0"
echo "USE_INTERNAL_OPUS=1"
echo "USE_INTERNAL_OGG=0"
# Use system headers
echo "USE_LOCAL_HEADERS=0"
} >> "Makefile.local"
# https://github.com/smokin-guns/SmokinGuns/issues/11
patch --forward --strip=1 --input="$srcdir/$pkgname-#11-build-fail.patch"
# This makes yylex compile with gcc > 13
# Add `int yylex(void);` declaration after the `%{` block start (hildigerr)
sed -i '/^%{.*/a int yylex(void);' code/tools/lcc/lburg/gram.y
}
build() {
cd "$pkgname" || exit
# lcc needs gcc < 15
# https://github.com/drh/lcc/issues/56
export TOOLS_CC="/usr/bin/gcc-14"
# yylex needs gcc < 14
# export CC="/usr/bin/gcc-13"
# > […] the list is optimized out in Sys_ListFiles() by the compiler. That's why I added CFLAGS="-O0 -g". (hildigerr)
export CFLAGS="-g -O0"
make
}
package() {
install -Dm 644 "$pkgname.desktop" \
"$pkgdir/usr/share/applications/$_pkgname.desktop"
cd "Smokin' Guns 1.1" || exit
install -d "$pkgdir/usr/share/$_pkgname/baseq3"
install -m 644 baseq3/* "$pkgdir/usr/share/$_pkgname/baseq3"
install -d "$pkgdir/usr/share/$_pkgname/$_pkgname"
install -m 644 "$_pkgname"/* "$pkgdir/usr/share/$_pkgname/$_pkgname"
cd "$srcdir/$pkgname" || exit
SUFFIX=${CARCH//i686/i386}
install -Dm 755 "build/release-linux-$SUFFIX/$_pkgname.$SUFFIX" \
"$pkgdir/usr/bin/$_pkgname"
install -Dm 755 "build/release-linux-$SUFFIX/${_pkgname}_dedicated.$SUFFIX" \
"$pkgdir/usr/bin/${_pkgname}_dedicated"
install -Dm 644 "build/release-linux-$SUFFIX/renderer_opengl1_$SUFFIX.so" \
"$pkgdir/usr/share/$_pkgname"
install -Dm 644 "build/release-linux-$SUFFIX/renderer_opengl2_$SUFFIX.so" \
"$pkgdir/usr/share/$_pkgname"
install -Dm 644 "misc/$_pkgname.png" \
"$pkgdir/usr/share/icons/hicolor/256x256/apps/$_pkgname.png"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-01 00:21:48 | Low | 2 |
| 2026-10-31 00:07:41 | Low | 2 |
| 2026-10-30 00:29:30 | Low | 2 |
| 2026-10-29 00:13:55 | Low | 2 |
| 2026-10-28 00:06:54 | Low | 2 |
| 2026-10-27 00:23:28 | Low | 2 |
| 2026-10-26 00:12:40 | Low | 2 |
| 2026-10-25 00:20:48 | Low | 2 |
| 2026-10-24 00:14:55 | Low | 2 |
| 2026-10-23 00:02:19 | Low | 2 |
| 2026-10-22 00:13:10 | Low | 2 |
| 2026-10-21 00:12:50 | Low | 2 |
| 2026-10-20 00:10:31 | Low | 2 |
| 2026-10-19 00:03:55 | Low | 2 |
| 2026-10-18 00:06:55 | Low | 2 |
| 2026-10-17 00:21:55 | Low | 2 |
| 2026-10-16 00:12:47 | Low | 2 |
| 2026-10-15 00:28:05 | Low | 2 |
| 2026-10-14 00:06:47 | Low | 2 |
| 2026-10-13 00:23:45 | Low | 2 |