aboutsummaryrefslogtreecommitdiff
path: root/office/zathura-pdf-mupdf/zathura-pdf-mupdf.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/zathura-pdf-mupdf/zathura-pdf-mupdf.SlackBuild')
-rw-r--r--office/zathura-pdf-mupdf/zathura-pdf-mupdf.SlackBuild14
1 files changed, 8 insertions, 6 deletions
diff --git a/office/zathura-pdf-mupdf/zathura-pdf-mupdf.SlackBuild b/office/zathura-pdf-mupdf/zathura-pdf-mupdf.SlackBuild
index 2281bf8805a4..7e7be3cb6a00 100644
--- a/office/zathura-pdf-mupdf/zathura-pdf-mupdf.SlackBuild
+++ b/office/zathura-pdf-mupdf/zathura-pdf-mupdf.SlackBuild
@@ -7,7 +7,7 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
PRGNAM=zathura-pdf-mupdf
-VERSION=${VERSION:-0.2.4}
+VERSION=${VERSION:-0.2.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -40,10 +40,7 @@ fi
set -e
-rm -rf $PKG
-mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
@@ -53,9 +50,14 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-sed -i "s,-fPIC,$SLKCFLAGS," config.mk
+# mupdf 1.4 and later no longer have libmupdf-js-none (moved to libmupdf).
+# Anyway it's better to use pkg-config now that mupdf supports it.
+sed -i \
+ -e "s,-fPIC,$SLKCFLAGS," \
+ -e '/^MUPDF_LIB/s,-.*,$(shell pkg-config --libs mupdf),' \
+ config.mk
-make
+make VERBOSE=1
strip *.so
make install DESTDIR=$PKG