factorio-yafc-ce-git
LOW
maintainer exyi
3 votes
scanned 2026-09-17 00:27:14.276658
Why flagged
The non-whitelisted source is Lua's official tarball from lua.org, a legitimate and expected upstream source for building from source; this is a normal and safe AUR packaging practice.
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 non-whitelisted source is Lua's official tarball from lua.org, a legitimate and expected upstream source for building from source; this is a normal and safe AUR packaging practice.
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:19
https://www.lua.org/ftp/lua-$_lua_version.tar.gz)
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Standa Lukeš <archpkg@exyi.cz>
2
3
pkgname=factorio-yafc-ce-git
4
pkgdesc="Yet Another Factorio Calculator (Community Edition): Powerful calculator/analyser that works with mods"
5
pkgver=v2.19.0.14.g8506d457
6
pkgrel=2
7
arch=(x86_64)
8
url=https://github.com/Yafc-CE/yafc-ce
9
license=(GPL)
10
depends=(sdl2 sdl2_ttf sdl2_image dotnet-runtime-10.0)
11
makedepends=(git dotnet-sdk-10.0 make gcc)
12
optdepends=()
13
provides=()
14
conflicts=()
15
options=()
16
_lua_version=5.2.1
17
source=($pkgname::git+https://github.com/Yafc-CE/yafc-ce.git
18
factorio-yafc-ce.desktop factorio-yafc-ce icon.png
19
https://www.lua.org/ftp/lua-$_lua_version.tar.gz)
20
sha256sums=('SKIP'
21
'c6d364d63a902899367a46a91f353c57e19819c91173a6d9c685c2248f65131b'
22
'8dea6d32f93f4210aab7863ac4e994e3c3b4d6d3873606ff96fc440fcf4329a3'
23
'2aef2817ffcb8ff2448fd6942d7d7dd3dfa0a7a077427a3fca80c67b0ba20168'
24
'64304da87976133196f9e4c15250b70f444467b6ed80d7cfd7b3b982b5177be5')
25
26
pkgver() {
27
cd "$srcdir/$pkgname"
28
git describe --tags --long | sed 's|Release-||;s|[_-]|.|g'
29
}
30
31
prepare() {
32
cd "$srcdir/$pkgname/Yafc"
33
34
# remove pre-compiled binaries provided in the git repo, this is not a -bin package
35
rm -rf lib
36
37
DOTNET_CLI_TELEMETRY_OPTOUT=1 MSBUILDTERMINALLOGGER=off dotnet restore --locked-mode --use-current-runtime
38
39
# YAFC needs patched lua version for factorio compatibility
40
cd "$srcdir/lua-$_lua_version"
41
42
patch -p1 -i "$srcdir/$pkgname/lua/liblua.so.patch"
43
cd "src"
44
patch -p1 -i "$srcdir/$pkgname/lua/lua-5.2.1.patch"
45
}
46
47
build() {
48
cd "$srcdir/$pkgname/Yafc"
49
50
DOTNET_CLI_TELEMETRY_OPTOUT=1 MSBUILDTERMINALLOGGER=off dotnet publish --no-self-contained --use-current-runtime -o "../publish"
51
52
cd "$srcdir/lua-$_lua_version"
53
54
make MYCFLAGS="$CFLAGS -fPIC" MYLDFLAGS="$LDFLAGS" linux
55
cp src/liblua.so "$srcdir/$pkgname/publish/liblua52.so"
56
}
57
58
package() {
59
cd "$srcdir/$pkgname"
60
install -d "$pkgdir/usr/lib"
61
cp -a "$srcdir/$pkgname/publish" "$pkgdir/usr/lib/$pkgname"
62
install -Dm755 "$srcdir/factorio-yafc-ce" "$pkgdir/usr/bin/factorio-yafc-ce" # launch script adding --roll-forward Major to make it run on newer .NET versions
63
install -Dm644 "$srcdir/factorio-yafc-ce.desktop" "$pkgdir"/usr/share/applications/factorio-yafc-ce.desktop
64
install -Dm644 "$srcdir/icon.png" "$pkgdir"/usr/share/icons/hicolor/64x64/apps/yafc-ce.png
65
}
66
67
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Low | 2 |
| 2026-09-16 00:03:17 | Low | 2 |
| 2026-09-15 00:25:31 | Low | 2 |
| 2026-09-14 00:27:57 | Low | 2 |
| 2026-09-13 00:19:54 | Low | 2 |
| 2026-09-12 00:25:17 | Low | 2 |
| 2026-09-11 00:19:22 | Low | 2 |
| 2026-09-10 00:22:44 | Low | 2 |
| 2026-09-09 00:04:09 | Low | 2 |
| 2026-09-08 00:18:08 | Low | 2 |
| 2026-09-07 00:30:15 | Low | 2 |
| 2026-09-06 00:17:06 | Low | 2 |
| 2026-09-05 00:16:27 | Low | 2 |
| 2026-09-04 00:03:13 | Low | 2 |
| 2026-09-03 00:15:47 | Low | 2 |
| 2026-09-02 00:02:31 | Low | 2 |
| 2026-09-01 00:11:19 | Low | 2 |
| 2026-08-31 00:19:57 | Low | 2 |
| 2026-08-30 00:04:14 | Low | 2 |
| 2026-08-29 00:29:17 | Low | 2 |