blob: b6bb195b65fb96427e377c56a7a155bab25b38dd (
plain)
1 # Description: Lightweight PDF and XPS viewer
2 # URL: https://www.mupdf.com/
3 # Maintainer: Juergen Daubert, jue at crux dot nu
4 # Depends on: glu libglvnd harfbuzz libjpeg-turbo xorg-libxi
5 # Optional: freeglut openjpeg2 jbig2dec gumbo-parser
6
7 name=mupdf
8 version=1.21.1
9 release=1
10 source=(https://mupdf.com/downloads/archive/$name-$version-source.tar.gz)
11
12 build() {
13 cd $name-$version-source
14
15 PKGMK_MUPDF="USE_SYSTEM_LIBS=yes"
16
17 prt-get isinst freeglut || PKGMK_MUPDF+=" USE_SYSTEM_GLUT=no"
18 prt-get isinst openjpeg2 || PKGMK_MUPDF+=" USE_SYSTEM_OPENJPEG=no"
19 prt-get isinst jbig2dec || PKGMK_MUPDF+=" USE_SYSTEM_JBIG2DEC=no"
20 prt-get isinst gumbo-parser || PKGMK_MUPDF+=" USE_SYSTEM_GUMBO=no"
21
22 make install $PKGMK_MUPDF\
23 prefix=$PKG/usr \
24 mandir=$PKG/usr/share/man \
25 XCFLAGS="-fpic -fcommon"
26
27 ln -s mupdf-gl $PKG/usr/bin/mupdf
28 rm -r $PKG/usr/share/doc
29 }
|