mahjong
The source is a tarball from the project's official domain, used to build the software from source; the host is not whitelisted but is plausibly project-owned, and the checksums are verified, making this a normal AUR package with low risk.
Triggered rules
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 source is a tarball from the project's official domain, used to build the software from source; the host is not whitelisted but is plausibly project-owned, and the checksums are verified, making this a normal AUR package with low risk.
1 higher static finding superseded - not the current verdict (shown for transparency)
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:17
source=("http://mahjong.julianbradfield.org/Source/${_srcdir}.tar.gz")
PKGBUILD
1 offending line(s) highlighted# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com
# Contributor: Alexander F. Rødseth <xyproto@archlinux.org>
# Contributor: Kevin Piche <kevin@archlinux.org>
# Contributor: Jason Chu <jchu@xentac.net>
set -u
pkgname='mahjong'
pkgver='1.17.2'
pkgrel='1'
pkgdesc='The classical game of Mah Jong (multiplayer)'
arch=('x86_64')
url='https://mahjong.julianbradfield.org/'
license=('GPL-2.0-or-later')
depends=('glibc' 'gtk2' 'pango' 'atk' 'cairo' 'gdk-pixbuf2' 'glib2' 'harfbuzz' 'fontconfig' 'freetype2')
makedepends=('gendesk' 'imagemagick' 'setconf')
_srcdir="mj-${pkgver}-src"
source=("http://mahjong.julianbradfield.org/Source/${_srcdir}.tar.gz")
md5sums=('fec3dc03dc9496b0ed6e0bbb82af395e')
sha256sums=('f701a51704a55adde83e75670096841835cf1878e6a33623ea7894476d2d83c6')
prepare() {
set -u
cd "${_srcdir}"
gendesk -f -n --pkgname "${pkgname}" --pkgdesc "${pkgdesc}" --categories 'Application;Game' --exec 'xmj'
magick 'icon.ico' +set 'date:create' +set 'date:modify' "${pkgname}.png"
sed -e 's/& Calling/Calling/' -i 'gui-dial.c'
setconf 'Makefile' CFLAGS="${CFLAGS} $(pkg-config gtk+-2.0 --cflags) -DTILESET=NULL -DTILESETPATH=NULL -DGTK2=1 -w"
set +u
}
build() {
set -u
cd "${_srcdir}"
make LDLIBS='-lm'
set +u
}
package() {
set -u
cd "${_srcdir}"
make DESTDIR="${pkgdir}/usr/" MANDIR='share/man/man1' install 'install.man'
install -Dpm644 'tiles-v1/README' "${pkgdir}/usr/share/licenses/${pkgname}/tiles-license.txt"
install -Dpm644 "${pkgname}.desktop" -t "${pkgdir}/usr/share/applications/"
install -Dpm644 "${pkgname}.png" -t "${pkgdir}/usr/share/pixmaps/"
set +u
}
set +u
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Low | 2 |
| 2026-09-16 00:03:17 | Low | 2 |
| 2026-09-15 00:25:31 | Low | 2 |
| 2026-09-14 00:27:57 | Low | 2 |
| 2026-09-13 00:19:54 | Low | 2 |
| 2026-09-12 00:25:17 | Low | 2 |
| 2026-09-11 00:19:22 | Low | 2 |
| 2026-09-10 00:22:44 | Low | 2 |
| 2026-09-09 00:04:09 | Low | 2 |
| 2026-09-08 00:18:08 | Low | 2 |
| 2026-09-07 00:30:15 | Low | 2 |
| 2026-09-06 00:17:06 | Low | 2 |
| 2026-09-05 00:16:27 | Low | 2 |
| 2026-09-04 00:03:13 | Low | 2 |
| 2026-09-03 00:15:47 | Low | 2 |
| 2026-09-02 00:02:31 | Low | 2 |
| 2026-09-01 00:11:19 | Low | 2 |
| 2026-08-31 00:19:57 | Low | 2 |
| 2026-08-30 00:04:14 | Low | 2 |
| 2026-08-29 00:29:17 | Low | 2 |