mupdf: update to 1.18.0

Closes: #26325 [via git-merge-pr]
This commit is contained in:
Paper 2020-10-13 23:57:24 +02:00 committed by Andrew J. Hesford
parent 6e8505b8ab
commit 0ffa67c9ea
1 changed files with 13 additions and 10 deletions

View File

@ -1,12 +1,13 @@
# Template file for 'mupdf'
pkgname=mupdf
version=1.17.0
revision=3
version=1.18.0
revision=1
wrksrc="${pkgname}-${version}-source"
hostmakedepends="pkg-config zlib-devel libcurl-devel freetype-devel
libjpeg-turbo-devel jbig2dec-devel libXext-devel libXcursor-devel
libXrandr-devel libXinerama-devel harfbuzz-devel readline-devel
MesaLib-devel libopenjpeg2-devel glu-devel libXi-devel libfreeglut-devel"
MesaLib-devel libopenjpeg2-devel glu-devel libXi-devel libfreeglut-devel
gumbo-parser-devel"
makedepends="$hostmakedepends"
depends="desktop-file-utils"
short_desc="Lightweight PDF and XPS viewer"
@ -14,7 +15,7 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
license="AGPL-3.0-only"
homepage="https://mupdf.com"
distfiles="https://mupdf.com/downloads/archive/${pkgname}-${version}-source.tar.gz"
checksum=00e33fa89cb42f1ef9e3bb73671b1cb6d210f5159bd68168fa5c89ceb24dd48e
checksum=8860ea6d01fc3c360ba5e0fa9fede241c6fbb2a73f5215b17a105de409a19266
patch_args="-Np1"
pre_build() {
@ -22,20 +23,22 @@ pre_build() {
sed 's/INSTALL_LIBS :=/& $(THREAD_LIB) $(PKCS7_LIB)/' -i Makefile
if [ "$CROSS_BUILD" ]; then
make CC=cc LD=ld AR=ar CFLAGS="-fPIC" LDFLAGS='' build=release generate
make ${makejobs} CC=cc LD=ld AR=ar CFLAGS="-fPIC" LDFLAGS='' build=release generate
fi
}
do_build() {
CFLAGS+=" -fPIC"
CXXFLAGS+=" -fPIC"
local _crosscompile
if [ "$CROSS_BUILD" ]; then
make USE_SYSTEM_LIBS=yes CURL_LIBS='-lcurl -lpthread' build=release CROSSCOMPILE=yes all
make CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" build=release CROSSCOMPILE=yes -C thirdparty/mujs
else
make USE_SYSTEM_LIBS=yes CURL_LIBS='-lcurl -lpthread' build=release all
make V=1 CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" build=release -C thirdparty/mujs
_crosscompile="CROSSCOMPILE=yes"
fi
make ${makejobs} USE_SYSTEM_LIBS=yes CURL_LIBS='-lcurl -lpthread' build=release ${_crosscompile} all
make ${makejobs} CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" build=release ${_crosscompile} -C thirdparty/mujs
}
do_install() {