factorio-yafc-ce-git

LOW
maintainer exyi 3 votes scanned 2026-11-01 00:21:48.120785
View on AUR
Why flagged

The package downloads Lua source from the official lua.org domain, which is a standard and trusted host for Lua releases; the download is used to build a library locally and is not an untrusted prebuilt binary, so the non-whitelisted host flag is a false positive.

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-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads Lua source from the official lua.org domain, which is a standard and trusted host for Lua releases; the download is used to build a library locally and is not an untrusted prebuilt binary, so the non-whitelisted host flag is a false positive.

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
3pkgname=factorio-yafc-ce-git
4pkgdesc="Yet Another Factorio Calculator (Community Edition): Powerful calculator/analyser that works with mods"
5pkgver=v2.20.0.38.g5523a306
6pkgrel=1
7arch=(x86_64)
8url=https://github.com/Yafc-CE/yafc-ce
9license=(GPL)
10depends=(sdl2 sdl2_ttf sdl2_image dotnet-runtime-10.0)
11makedepends=(git dotnet-sdk-10.0 make gcc)
12optdepends=()
13provides=()
14conflicts=()
15options=()
16_lua_version=5.2.1
17source=($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)
20sha256sums=('SKIP'
21 'c6d364d63a902899367a46a91f353c57e19819c91173a6d9c685c2248f65131b'
22 '8dea6d32f93f4210aab7863ac4e994e3c3b4d6d3873606ff96fc440fcf4329a3'
23 '2aef2817ffcb8ff2448fd6942d7d7dd3dfa0a7a077427a3fca80c67b0ba20168'
24 '64304da87976133196f9e4c15250b70f444467b6ed80d7cfd7b3b982b5177be5')
25
26pkgver() {
27 cd "$srcdir/$pkgname"
28 git describe --tags --long | sed 's|Release-||;s|[_-]|.|g'
29}
30
31prepare() {
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
47build() {
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
58package() {
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

Changes since previous scan

--- PKGBUILD @ 2026-10-23 00:02
+++ PKGBUILD @ 2026-11-01 00:21
@@ -2,8 +2,8 @@
pkgname=factorio-yafc-ce-git
pkgdesc="Yet Another Factorio Calculator (Community Edition): Powerful calculator/analyser that works with mods"
-pkgver=v2.19.0.14.g8506d457
-pkgrel=2
+pkgver=v2.20.0.38.g5523a306
+pkgrel=1
arch=(x86_64)
url=https://github.com/Yafc-CE/yafc-ce
license=(GPL)

Scan history

Scanned at (UTC)SeverityRules
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 21:38:30 Medium 1
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

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion