mupdf-git
maintainer vesath
· 18 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package builds from official project Git repositories (ghostscript.com) and includes a header file from the same trusted source; SKIP'd checksums are common for git sources, and no untrusted or executable payloads are downloaded.
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 package builds from official project Git repositories (ghostscript.com) and includes a header file from the same trusted source; SKIP'd checksums are common for git sources, and no untrusted or executable payloads are downloaded.
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
5
pkgname=mupdf-git
6
_pkgname=mupdf
7
pkgver=20260606.558f53f95
8
pkgrel=1
9
pkgdesc='Lightweight PDF, XPS, and E-book viewer'
10
arch=(x86_64 armv7h aarch64)
11
url=https://mupdf.com/
12
license=(AGPL3)
13
makedepends=(git glu libxi)
14
depends=(gumbo-parser harfbuzz libarchive libgl
15
libjpeg-turbo libxrandr mujs openjpeg2)
16
source=(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)
24
sha256sums=(SKIP
25
SKIP
26
SKIP
27
SKIP
28
SKIP
29
SKIP
30
d8db1f6daadf0ab92a806d1e5f2ddc2289767f18cd862b8978bae6a19b82ea0a
31
ccff66979249bd4ab4ba8918660f194eb90eb0ae231b16e36a6cecdcf471883f)
32
33
conflicts=(${_pkgname}{,-gl,-tools})
34
provides=(${_pkgname}{,-gl,-tools})
35
36
pkgver() {
37
cd "${srcdir}/${_pkgname}"
38
git log -1 --format='%cd.%h' --date=short | tr -d -
39
}
40
41
prepare() {
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
55
build() {
56
cd "${srcdir}/${_pkgname}"
57
export USE_SYSTEM_LIBS=yes
58
export CFLAGS+=' -D TOFU_CJK -D TOFU_NOTO' # only embed Base14 fonts and Charis SIL
59
sed 's/$(HAVE_X11)/no/g' -i Makefile # prevent building useless binaries
60
sed 's/$(USE_SYSTEM_GLUT)/no/g' -i Makethird Makefile
61
sed 's/$(USE_SYSTEM_JBIG2DEC)/no/g' -i Makethird
62
sed 's/$(USE_SYSTEM_MUJS)/yes/g' -i Makethird
63
sed 's/$(SYS_BROTLI_LIBS)/-lbrotlienc -lbrotlidec/g' -i Makethird
64
make archive=yes build=release
65
}
66
67
package() {
68
cd "${srcdir}/${_pkgname}"
69
make archive=yes install DESTDIR="${pkgdir}" prefix=/usr
70
mv "${pkgdir}"/usr/bin/mupdf{-gl,}
71
rm -fr "${pkgdir}"/usr/{include,lib}
72
find "${pkgdir}"/usr/share -type f -exec chmod 0644 {} +
73
install -Dm644 ../desktop "${pkgdir}"/usr/share/applications/mupdf.desktop
74
}
75
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 |