summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--office/zathura-pdf-mupdf/README3
-rw-r--r--office/zathura-pdf-mupdf/zathura-pdf-mupdf.SlackBuild14
-rw-r--r--office/zathura-pdf-mupdf/zathura-pdf-mupdf.info6
3 files changed, 11 insertions, 12 deletions
diff --git a/office/zathura-pdf-mupdf/README b/office/zathura-pdf-mupdf/README
index 65ef0482c5..707c63c1af 100644
--- a/office/zathura-pdf-mupdf/README
+++ b/office/zathura-pdf-mupdf/README
@@ -10,6 +10,3 @@ support having multiple plugins per filetype, so after installing
zathura-pdf-mupdf, zathura will always use the mupdf backend. To switch
back to the poppler backend, remove both zathura and zathura-pdf-mupdf,
then reinstall zathura.
-
-Note: Make sure your mupdf package has been upgraded to at least version
-1.2 before building this.
diff --git a/office/zathura-pdf-mupdf/zathura-pdf-mupdf.SlackBuild b/office/zathura-pdf-mupdf/zathura-pdf-mupdf.SlackBuild
index 2281bf8805..7e7be3cb6a 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
diff --git a/office/zathura-pdf-mupdf/zathura-pdf-mupdf.info b/office/zathura-pdf-mupdf/zathura-pdf-mupdf.info
index 5a856ed13e..d7cbe64fd6 100644
--- a/office/zathura-pdf-mupdf/zathura-pdf-mupdf.info
+++ b/office/zathura-pdf-mupdf/zathura-pdf-mupdf.info
@@ -1,8 +1,8 @@
PRGNAM="zathura-pdf-mupdf"
-VERSION="0.2.4"
+VERSION="0.2.6"
HOMEPAGE="http://www.pwmt.org/projects/zathura/plugins/zathura-pdf-mupdf/"
-DOWNLOAD="http://www.pwmt.org/projects/zathura/plugins/download/zathura-pdf-mupdf-0.2.4.tar.gz"
-MD5SUM="aa9667425dab93147dd8605eda020e59"
+DOWNLOAD="http://www.pwmt.org/projects/zathura/plugins/download/zathura-pdf-mupdf-0.2.6.tar.gz"
+MD5SUM="5102e416aecc2a14d78cc9c83d529b39"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="mupdf zathura"