smokinguns-git
maintainer Lucki
· 6 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
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
LOW
AI review downgraded a static finding
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)
MEDIUM
source=() URL on a non-standard host
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
1
# Maintainer: Lucki <https://aur.archlinux.org/account/Lucki/>
2
# Contributor: hildigerr <https://aur.archlinux.org/account/hildigerr>
3
# Contributor: leper <blubblub@mail.ru>
4
# shellcheck disable=SC2034,SC2154,SC2148
5
6
pkgname=smokinguns-git
7
_pkgname=${pkgname%-git}
8
pkgver=1.1.r859.gf5d9ecf2
9
pkgrel=9
10
pkgdesc='A semi-realistic simulation of the old west great atmosphere built on id Tech 3.'
11
url="https://www.smokin-guns.org"
12
arch=('i686' 'x86_64')
13
license=('GPL2')
14
changelog=.CHANGELOG
15
depends=('freetype2' 'hicolor-icon-theme' 'libgl' 'libjpeg-turbo' 'libogg' 'sdl' 'speex' 'zlib')
16
makedepends=('git' 'glu' 'openal' 'gcc14')
17
conflicts=('smokinguns-bin' 'smokinguns' 'smokinguns-data')
18
provides=('smokinguns-data' 'smokinguns')
19
source=("$pkgname::git+https://github.com/smokin-guns/SmokinGuns.git"
20
"$pkgname.data.zip::https://www.smokin-guns.org/downloads/Smokin_Guns_1.1.zip"
21
"$pkgname.desktop"
22
"$pkgname-#11-build-fail.patch")
23
sha512sums=('SKIP'
24
'51954ce00cccd9eb95a10491f0fcdea2d024058da11cbda7ee56c6369e8bc101d89ed95549cf4255393c3e1bec4585be12937e7ed7b20ff4cc0ce96685a5ce72'
25
'37aefb4a9e811644af09bbbfdb35d6a2572bc70b6fe8ff0078330d1070e73ebcd18f2e656156f1e3d92b2ec7f6fdffe63b2c66018b449d8b5aa6402b3eb24d7d'
26
'4ad6e8c1775ccce791810349febfbcc9235bb4cc1310d0b5eb61ea522558c32457e192ab1b9860215d72441c708638cfa845af56e4749a0bfeecaa5bf120d051')
27
28
pkgver() {
29
cd "$pkgname" || exit
30
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
31
}
32
33
prepare() {
34
cd "$pkgname" || exit
35
{
36
# Set basedir
37
echo "DEFAULT_BASEDIR = /usr/share/$_pkgname"
38
39
# Use system libraries
40
echo "USE_INTERNAL_ZLIB=0"
41
echo "USE_INTERNAL_JPEG=0"
42
echo "USE_INTERNAL_SPEEX=0"
43
echo "USE_INTERNAL_OPUS=1"
44
echo "USE_INTERNAL_OGG=0"
45
46
# Use system headers
47
echo "USE_LOCAL_HEADERS=0"
48
49
} >> "Makefile.local"
50
51
# https://github.com/smokin-guns/SmokinGuns/issues/11
52
patch --forward --strip=1 --input="$srcdir/$pkgname-#11-build-fail.patch"
53
54
# This makes yylex compile with gcc > 13
55
# Add `int yylex(void);` declaration after the `%{` block start (hildigerr)
56
sed -i '/^%{.*/a int yylex(void);' code/tools/lcc/lburg/gram.y
57
}
58
59
build() {
60
cd "$pkgname" || exit
61
62
# lcc needs gcc < 15
63
# https://github.com/drh/lcc/issues/56
64
export TOOLS_CC="/usr/bin/gcc-14"
65
66
# yylex needs gcc < 14
67
# export CC="/usr/bin/gcc-13"
68
69
# > […] the list is optimized out in Sys_ListFiles() by the compiler. That's why I added CFLAGS="-O0 -g". (hildigerr)
70
export CFLAGS="-g -O0"
71
72
make
73
}
74
75
package() {
76
install -Dm 644 "$pkgname.desktop" \
77
"$pkgdir/usr/share/applications/$_pkgname.desktop"
78
79
cd "Smokin' Guns 1.1" || exit
80
81
install -d "$pkgdir/usr/share/$_pkgname/baseq3"
82
install -m 644 baseq3/* "$pkgdir/usr/share/$_pkgname/baseq3"
83
install -d "$pkgdir/usr/share/$_pkgname/$_pkgname"
84
install -m 644 "$_pkgname"/* "$pkgdir/usr/share/$_pkgname/$_pkgname"
85
86
cd "$srcdir/$pkgname" || exit
87
88
SUFFIX=${CARCH//i686/i386}
89
install -Dm 755 "build/release-linux-$SUFFIX/$_pkgname.$SUFFIX" \
90
"$pkgdir/usr/bin/$_pkgname"
91
92
install -Dm 755 "build/release-linux-$SUFFIX/${_pkgname}_dedicated.$SUFFIX" \
93
"$pkgdir/usr/bin/${_pkgname}_dedicated"
94
95
install -Dm 644 "build/release-linux-$SUFFIX/renderer_opengl1_$SUFFIX.so" \
96
"$pkgdir/usr/share/$_pkgname"
97
98
install -Dm 644 "build/release-linux-$SUFFIX/renderer_opengl2_$SUFFIX.so" \
99
"$pkgdir/usr/share/$_pkgname"
100
101
install -Dm 644 "misc/$_pkgname.png" \
102
"$pkgdir/usr/share/icons/hicolor/256x256/apps/$_pkgname.png"
103
}
104
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | LOW | 2 |
| 2026-08-02 00:16:08 | LOW | 2 |
| 2026-08-01 00:11:18 | LOW | 2 |
| 2026-07-31 00:14:10 | LOW | 2 |
| 2026-07-30 00:17:23 | LOW | 2 |
| 2026-07-29 00:25:53 | LOW | 2 |
| 2026-07-28 00:07:28 | LOW | 2 |
| 2026-07-27 00:24:32 | LOW | 2 |
| 2026-07-26 00:07:32 | LOW | 2 |
| 2026-07-25 00:13:44 | LOW | 2 |
| 2026-07-24 00:02:28 | LOW | 2 |
| 2026-07-23 00:14:47 | LOW | 2 |
| 2026-07-22 00:29:32 | LOW | 2 |
| 2026-07-21 00:24:15 | LOW | 2 |
| 2026-07-20 00:19:49 | LOW | 2 |
| 2026-07-19 00:17:08 | LOW | 2 |
| 2026-07-18 00:14:48 | LOW | 2 |
| 2026-07-17 00:06:16 | LOW | 2 |
| 2026-07-16 00:05:41 | LOW | 2 |
| 2026-07-15 00:09:25 | LOW | 2 |