xmage
The package downloads a prebuilt zip archive from a non-standard, project-associated host (beta.xmage.today) with a fixed checksum, which is a normal AUR practice, but the unverifiable nature of the prebuilt Java-based executable and SKIP'd checksums for other sources slightly increases supply-chain risk, though no active malicious behavior is evident.
Triggered rules
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
"http://beta.xmage.today/files/mage-full_1.4.61-dev_2026-08-12_12-34.zip"
llm_review
An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is MEDIUM (confidence 85%): The package downloads a prebuilt zip archive from a non-standard, project-associated host (beta.xmage.today) with a fixed checksum, which is a normal AUR practice, but the unverifiable nature of the prebuilt Java-based executable and SKIP'd checksums for other sources slightly increases supply-chain risk, though no active malicious behavior is evident.
PKGBUILD
1 offending line(s) highlighted# Maintainer: Aidan Coward <aidan -dot- coward -at- gmail -dot- com>
# Feedback is appreciated
pkgname=xmage
pkgver=1.4.61V1
pkgrel=0
pkgdesc="Java-based program for playing Magic:The Gathering, including client and server"
arch=('any')
url="http://xmage.today"
license=('MIT')
source=(
"http://beta.xmage.today/files/mage-full_1.4.61-dev_2026-08-12_12-34.zip"
'https://raw.githubusercontent.com/magefree/mage/master/LICENSE.txt'
'https://raw.githubusercontent.com/magefree/Launcher/master/src/main/resources/icon-mage.png'
'https://raw.githubusercontent.com/magefree/Launcher/refs/heads/master/src/deb/xmage.desktop')
sha256sums=("2aded65b0eb439e38edd529ba5230f0bd8b44e46f639f745b8ca73584a5ffd98"
"SKIP"
"SKIP"
"SKIP")
depends=('jre8-openjdk' 'java8-openjfx')
optdepends=('wmname: change window manager name for compatibility with certain WMs')
install="${pkgname}.install"
package() {
echo "cleaning files"
rm *.zip
rm *.cmd
echo "changing file format of included scripts..."
awk '{ sub("\r$", ""); print }' xmage/mage-client/startClient.sh > xmage/mage-client/startClient-unix.sh
awk '{ sub("\r$", ""); print }' xmage/mage-server/startServer.sh > xmage/mage-server/startServer-unix.sh
echo "changing default locations of scripts..."
sed -i 's|\.\/lib|\/usr\/share\/xmage\/xmage\/mage-client\/lib|' xmage/mage-client/startClient-unix.sh
sed -i 's|\.\/lib|\/usr\/share\/xmage\/xmage\/mage-server\/lib|' xmage/mage-server/startServer-unix.sh
echo "adding cd to relevant /usr/share/xmage/ directory..."
sed -i '2i cd /usr/share/xmage/xmage/mage-client' xmage/mage-client/startClient-unix.sh
sed -i '2i cd /usr/share/xmage/xmage/mage-server' xmage/mage-server/startServer-unix.sh
echo "increasing default memory limit of client and server"
sed -i 's|-Xmx2000m|-Xmx4096m|g' xmage/mage-client/startClient-unix.sh
sed -i 's|-Xmx2000m|-Xmx4096m|g' xmage/mage-server/startServer-unix.sh
echo "changing values in desktop file"
sed -i 's|Exec=xmage|Exec=/usr/bin/mage-client|' xmage.desktop
echo "Path=/usr/share/xmage/" >> xmage.desktop
echo "moving files..."
install -Dm755 xmage/mage-client/startClient-unix.sh "${pkgdir}"/usr/bin/mage-client
install -Dm755 xmage/mage-server/startServer-unix.sh "${pkgdir}"/usr/bin/mage-server
echo "creating /usr/share/xmage..."
install -dm755 "${pkgdir}"/usr/share/xmage
echo "copying files to /usr/share/xmage..."
cp -ra ./* "${pkgdir}"/usr/share/xmage/
echo "setting permissions of /usr/share/xmage..."
chmod -R a+rwx "${pkgdir}"/usr/share/xmage
echo "installing license: ${license}..."
install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licences/"${pkgname}"/LICENSE.txt
echo "installing mage-server systemd unit file to /usr/lib/systemd/system..."
mkdir -p "${pkgdir}"/usr/lib/systemd/system
install -m755 ../mage-server.service "${pkgdir}"/usr/lib/systemd/system
echo "installing icon and .desktop file..."
mkdir -p "${pkgdir}"/usr/share/icons
install -m755 icon-mage.png "${pkgdir}"/usr/share/icons/
mkdir -p "${pkgdir}"/usr/share/applications
install -m755 xmage.desktop "${pkgdir}"/usr/share/applications/xmage.desktop
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Medium | 2 |
| 2026-09-16 00:03:17 | Medium | 2 |
| 2026-09-15 00:25:31 | Medium | 2 |
| 2026-09-14 00:27:57 | Medium | 2 |
| 2026-09-13 00:19:54 | Medium | 2 |
| 2026-09-12 00:25:17 | Medium | 2 |
| 2026-09-11 00:19:22 | Medium | 2 |
| 2026-09-10 00:22:44 | Medium | 2 |
| 2026-09-09 00:04:09 | Medium | 2 |
| 2026-09-08 00:18:08 | Medium | 2 |
| 2026-09-07 00:30:15 | Medium | 2 |
| 2026-09-06 00:17:06 | Medium | 2 |
| 2026-09-05 00:16:27 | Medium | 2 |
| 2026-09-04 00:03:13 | Medium | 2 |
| 2026-09-03 00:15:47 | Medium | 2 |
| 2026-09-02 00:02:31 | Medium | 2 |
| 2026-09-01 00:11:19 | Medium | 2 |
| 2026-08-31 00:19:57 | Medium | 2 |
| 2026-08-30 00:04:14 | Medium | 2 |
| 2026-08-29 00:29:17 | Medium | 2 |