mupdf-git

LOW
maintainer vesath 18 votes scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

The package builds from official project Git repositories (ghostscript.com), which are legitimate sources for MuPDF and its dependencies; the non-whitelisted host is the project's own infrastructure, and the source code is not executed remotely or obfuscated.

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 builds from official project Git repositories (ghostscript.com), which are legitimate sources for MuPDF and its dependencies; the non-whitelisted host is the project's own infrastructure, and the source code is not executed remotely or obfuscated.

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:16 source=(git://git.ghostscript.com/mupdf.git
  • PKGBUILD:22 https://cgit.ghostscript.com/cgi-bin/cgit.cgi/mujs.git/plain/regexp.h

PKGBUILD

2 offending line(s) highlighted
1# Maintainer: Gaetan Bisson <bisson@archlinux.org>
2# Contributor: Stefan Husmann <stefan-husmannt-online.de>
3# Contributor: Army <uli armbruster>
4
5pkgname=mupdf-git
6_pkgname=mupdf
7pkgver=20260822.2db2083b6
8pkgrel=1
9pkgdesc='Lightweight PDF, XPS, and E-book viewer'
10arch=(x86_64 armv7h aarch64)
11url=https://mupdf.com/
12license=(AGPL3)
13makedepends=(git glu libxi)
14depends=(gumbo-parser harfbuzz libarchive libgl
15 libjpeg-turbo libxrandr mujs openjpeg2)
16source=(git://git.ghostscript.com/mupdf.git
17 git://git.ghostscript.com/extract.git
18 git://git.ghostscript.com/jbig2dec.git
19 git://git.ghostscript.com/thirdparty-cmark-gfm.git
20 git://git.ghostscript.com/thirdparty-freeglut.git
21 git://git.ghostscript.com/thirdparty-lcms2.git#branch=lcms2mt
22 https://cgit.ghostscript.com/cgi-bin/cgit.cgi/mujs.git/plain/regexp.h
23 desktop)
24sha256sums=(SKIP
25 SKIP
26 SKIP
27 SKIP
28 SKIP
29 SKIP
30 f3a0bf8821a77587d63590ba24162daee8429d9bbcd475dcede62c4fcd3d8066
31 ccff66979249bd4ab4ba8918660f194eb90eb0ae231b16e36a6cecdcf471883f)
32
33conflicts=(${_pkgname}{,-gl,-tools})
34provides=(${_pkgname}{,-gl,-tools})
35
36pkgver() {
37 cd "${srcdir}/${_pkgname}"
38 git log -1 --format='%cd.%h' --date=short | tr -d -
39}
40
41prepare() {
42 cd "${srcdir}/${_pkgname}"
43 rm -fr thirdparty/*
44 cp -a ../extract ../jbig2dec ../thirdparty-* thirdparty
45 rename thirdparty- '' thirdparty/*
46
47 # Should be in mujs package
48 mkdir thirdparty/mujs
49 cp ../regexp.h thirdparty/mujs
50
51 # No idea what that is for
52 sed -e '/autoheaderid/d' -i source/html/md.c Makelists
53
54 # Not yet available in Arch package
55 sed -e '/GUMBO_NODE_PROCESSING_INSTRUCTION/d' -i source/fitz/xml.c
56}
57
58build() {
59 cd "${srcdir}/${_pkgname}"
60 export USE_SYSTEM_LIBS=yes
61 export CFLAGS+=' -D TOFU_CJK -D TOFU_NOTO' # only embed Base14 fonts and Charis SIL
62 sed 's/$(HAVE_X11)/no/g' -i Makefile # prevent building useless binaries
63 sed 's/$(USE_SYSTEM_GLUT)/no/g' -i Makethird Makefile
64 sed 's/$(USE_SYSTEM_JBIG2DEC)/no/g' -i Makethird
65 sed 's/$(USE_SYSTEM_MUJS)/yes/g' -i Makethird
66 sed 's/$(SYS_BROTLI_LIBS)/-lbrotlienc -lbrotlidec/g' -i Makethird
67 make archive=yes build=release
68}
69
70package() {
71 cd "${srcdir}/${_pkgname}"
72 make archive=yes install DESTDIR="${pkgdir}" prefix=/usr
73 mv "${pkgdir}"/usr/bin/mupdf{-gl,}
74 rm -fr "${pkgdir}"/usr/{include,lib}
75 find "${pkgdir}"/usr/share -type f -exec chmod 0644 {} +
76 install -Dm644 ../desktop "${pkgdir}"/usr/share/applications/mupdf.desktop
77}
78

Scan history

Scanned at (UTC)SeverityRules
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

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion