factorio-yafc-ce-git
maintainer exyi
· 3 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
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-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 |