Juergen Daubert
19c238d66e
see http://www.cvedetails.com/vulnerability-list/vendor_id-10846/product_id-20840/year-2017/Artifex-Mupdf.html
28 lines
825 B
Plaintext
28 lines
825 B
Plaintext
# Description: Lightweight PDF and XPS viewer
|
|
# URL: http://www.mupdf.com/
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
|
# Depends on: harfbuzz libjpeg-turbo mesa3d xorg-libxcursor xorg-libxinerama xorg-libxrandr
|
|
|
|
name=mupdf
|
|
version=1.11
|
|
release=2
|
|
source=(http://mupdf.com/downloads/$name-$version-source.tar.gz
|
|
CVE-2017-{14685,14686,14687,15587}.patch)
|
|
|
|
build() {
|
|
cd $name-$version-source
|
|
|
|
patch -p1 -i $SRC/CVE-2017-14685.patch
|
|
patch -p1 -i $SRC/CVE-2017-14686.patch
|
|
patch -p1 -i $SRC/CVE-2017-14687.patch
|
|
patch -p1 -i $SRC/CVE-2017-15587.patch
|
|
|
|
rm -r thirdparty/{freetype,libjpeg,zlib,curl,harfbuzz}
|
|
|
|
make XCFLAGS="-fpic" build=release
|
|
make prefix=$PKG/usr mandir=$PKG/usr/share/man install
|
|
|
|
ln -s mupdf-x11-curl $PKG/usr/bin/mupdf
|
|
rm -r $PKG/usr/share/doc
|
|
}
|