mtgarena
CLEAN
maintainer starwort
2 votes
scanned 2026-09-28 00:28:32.978392
Triggered rules
Clean
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 CLEAN (confidence 95%): The source is a prebuilt MSI installer from the official game domain wizards.com, which is the legitimate and expected source for the application; installing proprietary software via its official installer is standard practice and not inherently dangerous.
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:15
"${pkgname}-${pkgver}.msi::https://mtgarena.downloads.wizards.com/Live/Windows32/versions/${_shortver}/MTGAInstaller_${pkgver}.msi"
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Toby Collier <firstname dot lastname at maths.ox.ac.uk>
2
3
pkgname=mtgarena
4
_shortver=14282.1322290
5
pkgver=0.1.$_shortver
6
pkgrel=2
7
pkgdesc="Magic: the Gathering Arena (via Wine)"
8
arch=('x86_64')
9
url="https://magic.wizards.com/en/mtgarena"
10
license=('custom')
11
depends=('wine')
12
makedepends=('icoutils')
13
14
source=(
15
"${pkgname}-${pkgver}.msi::https://mtgarena.downloads.wizards.com/Live/Windows32/versions/${_shortver}/MTGAInstaller_${pkgver}.msi"
16
"${pkgname}"
17
"${pkgname}.desktop"
18
)
19
20
sha256sums=(
21
'0f6c287861b2ab883e926f89349acd77c1ccf95a166060091cdab3d23cd75a12'
22
'f7389c8dd1dba42a1af5f3fed0fe8f0bea591322a363bc981e9365c1df5e08fd'
23
'b646e4cbbeefc6d5dab93991d87afa21de3b3e6e54a06b37d92d1a9bfc5528ae'
24
)
25
26
prepare() {
27
export WINEPREFIX="${srcdir}/wineprefix"
28
export WINEARCH=win64
29
export WINEDLLOVERRIDES="winemenubuilder.exe=d"
30
wineboot -u
31
wine "${srcdir}/${pkgname}-${pkgver}.msi" /quiet
32
33
appdir="${srcdir}/wineprefix/drive_c/Program Files (x86)/Wizards of the Coast/MTGA"
34
exefile="${appdir}/MTGA.exe"
35
36
mkdir -p "${srcdir}/icons"
37
wrestool -x -t14 -o "${srcdir}/icons" "$exefile"
38
icotool -x -o "${srcdir}/icons" "${srcdir}/icons/MTGA.exe_14_103.ico"
39
}
40
41
package() {
42
install -dm755 "${pkgdir}/opt/${pkgname}"
43
44
cp -a \
45
"${srcdir}/wineprefix/drive_c/Program Files (x86)/Wizards of the Coast/MTGA" \
46
"${pkgdir}/opt/${pkgname}/"
47
install -Dm755 \
48
"${srcdir}/${pkgname}" \
49
"${pkgdir}/usr/bin/${pkgname}"
50
install -Dm644 \
51
"${srcdir}/${pkgname}.desktop" \
52
"${pkgdir}/usr/share/applications/${pkgname}.desktop"
53
54
find "${srcdir}/icons" -type f -name '*.png' | while read -r icon; do
55
filename="$(basename "$icon")"
56
size="$(sed -n 's/.*_\([0-9]\+\)x\1x.*/\1/p' <<< "$filename")"
57
58
if [[ -n "$size" ]]; then
59
install -Dm644 \
60
"$icon" \
61
"${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps/${pkgname}.png"
62
fi
63
done
64
}
65
Changes since previous scan
--- PKGBUILD @ 2026-08-18 00:03+++ PKGBUILD @ 2026-09-28 00:28@@ -1,7 +1,7 @@ # Maintainer: Toby Collier <firstname dot lastname at maths.ox.ac.uk> pkgname=mtgarena-_shortver=13942.1309558+_shortver=14282.1322290 pkgver=0.1.$_shortver pkgrel=2 pkgdesc="Magic: the Gathering Arena (via Wine)"@@ -18,7 +18,7 @@ ) sha256sums=(- 'cd2ef1d0721f4f6c37fc54bdc427f0eee504b6ae5e79d0c03e77b9290e151807'+ '0f6c287861b2ab883e926f89349acd77c1ccf95a166060091cdab3d23cd75a12' 'f7389c8dd1dba42a1af5f3fed0fe8f0bea591322a363bc981e9365c1df5e08fd' 'b646e4cbbeefc6d5dab93991d87afa21de3b3e6e54a06b37d92d1a9bfc5528ae' )Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-28 00:28:32 | Clean | 2 |
| 2026-09-27 23:19:54 | Medium | 1 |
| 2026-08-18 00:03:42 | Clean | 2 |
| 2026-08-17 09:35:23 | Medium | 1 |
| 2026-08-17 00:18:29 | Low | 2 |
| 2026-08-16 00:03:42 | Low | 2 |
| 2026-08-15 00:26:13 | Low | 2 |
| 2026-08-14 00:03:41 | Low | 2 |
| 2026-08-13 00:17:07 | Low | 2 |
| 2026-08-12 00:27:08 | Low | 2 |
| 2026-08-11 00:07:57 | Low | 2 |
| 2026-08-10 00:09:14 | Low | 2 |
| 2026-08-09 00:07:45 | Low | 2 |
| 2026-08-08 00:18:14 | Low | 2 |
| 2026-08-07 00:19:04 | Low | 2 |
| 2026-08-06 00:26:13 | Low | 2 |
| 2026-08-05 00:12:14 | Low | 2 |
| 2026-08-04 00:01:00 | Low | 2 |
| 2026-08-03 00:08:14 | Low | 2 |
| 2026-08-02 00:16:08 | Low | 2 |