maszyna-git
maintainer onofremelendez
· 1 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package builds from legitimate project-owned Git repositories and downloads unverifiable asset archives (with checksums) from the project's associated domain; the worst case of a swapped source is data tampering, not code execution, as assets are not executed.
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 builds from legitimate project-owned Git repositories and downloads unverifiable asset archives (with checksums) from the project's associated domain; the worst case of a swapped source is data tampering, not code execution, as assets are not executed.
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:17
"http://stuff.eu07.pl/MaSzyna${_assets_ver}.zip" -
PKGBUILD:19
"https://eu07.pl/docs/inne/readme_pliki/licencja.html"
PKGBUILD
2 offending line(s) highlighted
1
# Contributor: Michał Lisowski <lisu@riseup.net>
2
3
_assets_ver=2104
4
5
pkgname=maszyna-git
6
pkgver=r2801.01bcadff
7
pkgrel=1
8
pkgdesc="Polish train simulator"
9
arch=('x86_64')
10
url="https://eu07.pl/"
11
license=('MPL2' 'custom')
12
makedepends=('asio' 'cmake' 'git' 'glfw' 'glm' 'libserialport' 'openvr' 'p7zip' 'vulkan-icd-loader' 'vulkan-headers' 'directx-shader-compiler' 'libxinerama')
13
depends=('libserialport' 'openvr' 'python2' 'wine' 'luajit' 'openal' 'libsndfile')
14
source=("$pkgname"::'git+https://github.com/MaSzyna-EU07/maszyna.git'
15
"git+https://github.com/glfw/glfw.git"
16
"git+https://github.com/nlohmann/json.git"
17
"http://stuff.eu07.pl/MaSzyna${_assets_ver}.zip"
18
"http://stuff.eu07.pl/${_assets_ver}HF.zip"
19
"https://eu07.pl/docs/inne/readme_pliki/licencja.html"
20
"maszyna.sh"
21
"discord-rpc.patch")
22
noextract=("MaSzyna${_assets_ver}.zip"
23
"${_assets_ver}HF.zip")
24
md5sums=('SKIP'
25
'SKIP'
26
'SKIP'
27
'125b037d69729ab67091cf757040b277'
28
'1362073d9fc81b83e9970f02c38b0257'
29
'3ceb82abdda799961f2bdc1c9bdc842a'
30
'a24521953418278dc07571bf3ee75b89'
31
'ce48ac0b428121a3ca20d217827c5329')
32
33
pkgver() {
34
cd "$srcdir/$pkgname"
35
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
36
}
37
38
prepare() {
39
cd "$srcdir/$pkgname"
40
git submodule init
41
#https://github.com/MaSzyna-EU07/maszyna/issues/54
42
git config submodule.ref/json.url "${srcdir}/json"
43
git config submodule.ref/glfw.url "${srcdir}/glfw"
44
git submodule deinit ref/glm
45
git submodule deinit betterRenderer/thirdparty/nvrhi
46
git submodule deinit betterRenderer/thirdparty/yaml-cpp
47
git submodule deinit betterRenderer/thirdparty/fmt
48
git submodule deinit betterRenderer/thirdparty/entt
49
git submodule deinit ref/asio
50
git submodule deinit ref/discord-rpc
51
git submodule deinit ref/vcpkg
52
git submodule deinit betterRenderer/thirdparty/bvh
53
git submodule--helper update
54
#https://github.com/MaSzyna-EU07/maszyna/issues/55
55
patch -p1 -i "${srcdir}/discord-rpc.patch"
56
}
57
58
build() {
59
cd "$srcdir/$pkgname"
60
mkdir build
61
cd build
62
export CXXFLAGS="$CXXFLAGS -Wno-error=format-security"
63
cmake .. -DCMAKE_BUILD_TYPE=Release -DWITH_BETTER_RENDERER=OFF -DWITH_DISCORD_RPC=OFF -DWITH_OPENVR=ON
64
make
65
}
66
67
package() {
68
cd "$srcdir/$pkgname"
69
install -D -m755 build/bin/eu07_$(git show -s --format=%cs)_$(git describe --match=DUMMY --always --dirty) "${pkgdir}/opt/maszyna/eu07"
70
install -D -m755 ${srcdir}/maszyna.sh "${pkgdir}/usr/bin/maszyna"
71
cp -r shaders "${pkgdir}/opt/maszyna/"
72
7z x "${srcdir}/MaSzyna${_assets_ver}.zip" -o"${pkgdir}/opt/maszyna" -y
73
7z x "${srcdir}/${_assets_ver}HF.zip" -o"${pkgdir}/opt/maszyna" -y
74
install -D -m644 "${srcdir}/licencja.html" "${pkgdir}/usr/share/licenses/${pkgname}/license.html"
75
}
76
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 |