mahjong
maintainer severach
· 4 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
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
LOW
AI review downgraded a static finding
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)
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:17
source=("http://mahjong.julianbradfield.org/Source/${_srcdir}.tar.gz")
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com
2
# Contributor: Alexander F. Rødseth <xyproto@archlinux.org>
3
# Contributor: Kevin Piche <kevin@archlinux.org>
4
# Contributor: Jason Chu <jchu@xentac.net>
5
6
set -u
7
pkgname='mahjong'
8
pkgver='1.17.2'
9
pkgrel='1'
10
pkgdesc='The classical game of Mah Jong (multiplayer)'
11
arch=('x86_64')
12
url='https://mahjong.julianbradfield.org/'
13
license=('GPL-2.0-or-later')
14
depends=('glibc' 'gtk2' 'pango' 'atk' 'cairo' 'gdk-pixbuf2' 'glib2' 'harfbuzz' 'fontconfig' 'freetype2')
15
makedepends=('gendesk' 'imagemagick' 'setconf')
16
_srcdir="mj-${pkgver}-src"
17
source=("http://mahjong.julianbradfield.org/Source/${_srcdir}.tar.gz")
18
md5sums=('fec3dc03dc9496b0ed6e0bbb82af395e')
19
sha256sums=('f701a51704a55adde83e75670096841835cf1878e6a33623ea7894476d2d83c6')
20
21
prepare() {
22
set -u
23
cd "${_srcdir}"
24
gendesk -f -n --pkgname "${pkgname}" --pkgdesc "${pkgdesc}" --categories 'Application;Game' --exec 'xmj'
25
magick 'icon.ico' +set 'date:create' +set 'date:modify' "${pkgname}.png"
26
sed -e 's/& Calling/Calling/' -i 'gui-dial.c'
27
setconf 'Makefile' CFLAGS="${CFLAGS} $(pkg-config gtk+-2.0 --cflags) -DTILESET=NULL -DTILESETPATH=NULL -DGTK2=1 -w"
28
set +u
29
}
30
31
build() {
32
set -u
33
cd "${_srcdir}"
34
make LDLIBS='-lm'
35
set +u
36
}
37
38
package() {
39
set -u
40
cd "${_srcdir}"
41
make DESTDIR="${pkgdir}/usr/" MANDIR='share/man/man1' install 'install.man'
42
install -Dpm644 'tiles-v1/README' "${pkgdir}/usr/share/licenses/${pkgname}/tiles-license.txt"
43
install -Dpm644 "${pkgname}.desktop" -t "${pkgdir}/usr/share/applications/"
44
install -Dpm644 "${pkgname}.png" -t "${pkgdir}/usr/share/pixmaps/"
45
set +u
46
}
47
set +u
48
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | LOW | 2 |
| 2026-08-02 00:16:08 | LOW | 2 |
| 2026-08-01 00:11:18 | LOW | 2 |
| 2026-07-31 00:14:10 | LOW | 2 |
| 2026-07-30 00:17:23 | LOW | 2 |
| 2026-07-29 00:25:53 | LOW | 2 |
| 2026-07-28 00:07:28 | LOW | 2 |
| 2026-07-27 00:24:32 | LOW | 2 |
| 2026-07-26 00:07:32 | LOW | 2 |
| 2026-07-25 00:13:44 | LOW | 2 |
| 2026-07-24 00:02:28 | LOW | 2 |
| 2026-07-23 00:14:47 | LOW | 2 |
| 2026-07-22 00:29:32 | LOW | 2 |
| 2026-07-21 00:24:15 | LOW | 2 |
| 2026-07-20 00:19:49 | LOW | 2 |
| 2026-07-19 00:17:08 | LOW | 2 |
| 2026-07-18 00:14:48 | LOW | 2 |
| 2026-07-17 00:06:16 | LOW | 2 |
| 2026-07-16 00:05:41 | LOW | 2 |
| 2026-07-15 00:09:25 | LOW | 2 |