unciv

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

The package downloads the project's own source code from its official GitHub repository and a Gradle distribution from the official services.gradle.org, both of which are legitimate and expected for building; the non-standard host flag is a false positive as GitHub and Gradle's service are standard development hosts.

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 the project's own source code from its official GitHub repository and a Gradle distribution from the official services.gradle.org, both of which are legitimate and expected for building; the non-standard host flag is a false positive as GitHub and Gradle's service are standard development hosts.

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://services.gradle.org/distributions/gradle-$_gradle_ver-bin.zip"

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Peter Cai <peter at typeblog dot net>
2
3pkgname=unciv
4_pkgname=Unciv
5_gradle_ver=8.7 # This package does not work with system gradle
6pkgver=4.22.16.REL
7_pkgver=${pkgver%.*}-${pkgver##*.}
8_pkgver=$(echo $_pkgver | sed -r 's/-([0-9]+)/-patch\1/g')
9_pkgver=${_pkgver/-REL/}
10pkgrel=1
11_srcdir=$_pkgname-$_pkgver
12pkgdesc="Open-source remake of Civilization V"
13url="https://github.com/yairm210/Unciv"
14license=('MPL-2.0')
15depends=('jdk17-openjdk' 'bash' 'xorg-xrandr')
16arch=('any')
17source=(
18 "https://github.com/yairm210/Unciv/archive/$_pkgver.zip"
19 "https://services.gradle.org/distributions/gradle-$_gradle_ver-bin.zip"
20 "$_pkgname.sh"
21 "$pkgname.desktop"
22)
23noextract=("gradle-$_gradle_ver-bin.zip")
24md5sums=('d1b82a4319ad73fa61334dec07406529'
25 '1f52d7ea57c9aad04446e00adbaac3bd'
26 'e6d812078de30b33ab4698a53118b773'
27 '42d5f7ea8ee48d2d643d070786f039ba')
28
29prepare() {
30 # Use gradle downloaded by our pkgbuild to allow caching
31 sed -i "6s|https\\\://services.gradle.org/distributions|../../../|" $_srcdir/gradle/wrapper/gradle-wrapper.properties
32 # Get rid of the Android part (it somehow always asks for Android SDK)
33 #gawk -i inplace 'BEGIN { doPrint = 1; } /project\(":android"\) {/ { doPrint = 0; } /^}$/ { if (doPrint != 1) { doPrint = 1; next }} { if (doPrint) print $0;}' $_srcdir/build.gradle.kts
34 # We cannot just get rid of the android/ folder becuase we need assets from it
35 rm -rf $_srcdir/android/{res,src,build.gradle.kts,gradle.properties,project.properties}
36}
37
38build() {
39 cd $_srcdir
40 unset _JAVA_OPTIONS
41 export PATH=/usr/lib/jvm/java-11-openjdk/bin/:$PATH
42 GRADLE_USER_HOME="$srcdir" ./gradlew desktop:dist
43}
44
45package() {
46 install -Dm755 $_pkgname.sh "$pkgdir/usr/bin/$_pkgname"
47 install -Dm644 $pkgname.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
48 install -Dm644 $_srcdir/extraImages/Icons/"Unciv icon v6.png" "$pkgdir/usr/share/pixmaps/unciv.png"
49 install -Dm644 $_srcdir/desktop/build/libs/$_pkgname.jar "$pkgdir/usr/share/$_pkgname/$_pkgname.jar"
50}
51

Changes since previous scan

--- PKGBUILD @ 2026-10-31 00:07
+++ PKGBUILD @ 2026-11-01 00:21
@@ -3,7 +3,7 @@
pkgname=unciv
_pkgname=Unciv
_gradle_ver=8.7 # This package does not work with system gradle
-pkgver=4.22.15.REL
+pkgver=4.22.16.REL
_pkgver=${pkgver%.*}-${pkgver##*.}
_pkgver=$(echo $_pkgver | sed -r 's/-([0-9]+)/-patch\1/g')
_pkgver=${_pkgver/-REL/}
@@ -21,7 +21,7 @@
"$pkgname.desktop"
)
noextract=("gradle-$_gradle_ver-bin.zip")
-md5sums=('406a28c5a22c5921948c16e339e58dc1'
+md5sums=('d1b82a4319ad73fa61334dec07406529'
'1f52d7ea57c9aad04446e00adbaac3bd'
'e6d812078de30b33ab4698a53118b773'
'42d5f7ea8ee48d2d643d070786f039ba')

Scan history

Scanned at (UTC)SeverityRules
2026-11-01 00:21:48 Low 2
2026-10-31 21:59:05 Medium 1
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 21:50:44 Medium 1
2026-10-28 00:06:54 Low 2
2026-10-27 00:23:28 Low 2
2026-10-26 05:43:49 Medium 1
2026-10-26 00:12:40 Low 2
2026-10-25 21:43:05 Medium 1
2026-10-25 00:20:48 Low 2
2026-10-24 21:41:28 Medium 1
2026-10-24 00:14:55 Low 2
2026-10-23 00:02:19 Low 2
2026-10-22 00:13:10 Low 2
2026-10-21 21:33:09 Medium 1
2026-10-21 00:12:50 Low 2
2026-10-20 00:10:31 Low 2
2026-10-19 00:03:55 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