summaryrefslogtreecommitdiff
path: root/office/zathura-pdf-mupdf/zathura-pdf-mupdf.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2015-05-11 20:41:46 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-05-17 23:45:50 +0700
commit6af4a5522670f351ea1b265332c1b722c2322903 (patch)
tree2dedd5a7bdb1452c04eae93fff60576eb27f957a /office/zathura-pdf-mupdf/zathura-pdf-mupdf.SlackBuild
parentef70875e1f61af6e82771c4e597e3f4b4ac85706 (diff)
downloadslackbuilds-6af4a5522670f351ea1b265332c1b722c2322903.tar.gz
office/zathura-pdf-mupdf: Updated for version 0.2.7.
Diffstat (limited to 'office/zathura-pdf-mupdf/zathura-pdf-mupdf.SlackBuild')
-rw-r--r--office/zathura-pdf-mupdf/zathura-pdf-mupdf.SlackBuild26
1 files changed, 22 insertions, 4 deletions
diff --git a/office/zathura-pdf-mupdf/zathura-pdf-mupdf.SlackBuild b/office/zathura-pdf-mupdf/zathura-pdf-mupdf.SlackBuild
index 7e7be3cb6a..8ff8cc5af8 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.6}
+VERSION=${VERSION:-0.2.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -40,7 +40,10 @@ 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 .
@@ -50,6 +53,17 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# Upstream left the README out of the release tarball for some reason.
+cat $CWD/upstream.README > README
+
+# Patches from upstream's -develop branch, needed for mupdf-1.7 API.
+# Also fix some minor bugs. The patch that enables epub support is
+# disabled here, as it doesn't actually work (yet).
+for patch in $CWD/patches/*.patch; do
+ basename $patch
+ patch -p1 < $patch
+done
+
# 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 \
@@ -57,12 +71,16 @@ sed -i \
-e '/^MUPDF_LIB/s,-.*,$(shell pkg-config --libs mupdf),' \
config.mk
-make VERBOSE=1
+PLUGDIR=/usr/lib$LIBDIRSUFFIX/zathura
+
+make
strip *.so
-make install DESTDIR=$PKG
+make install DESTDIR=$PKG PLUGINDIR="$PLUGDIR/pdf-mupdf"
+
+ln -s pdf-mupdf/pdf.so $PKG/$PLUGDIR/pdf.so
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README AUTHORS LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install