summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2012-07-29 23:12:14 -0500
committerRobby Workman <rworkman@slackbuilds.org>2012-07-29 23:12:14 -0500
commitc45dac6ecf0de5c1e02e6c3daad962462127f776 (patch)
tree8f1ae29b718d73ee7266108bc322da53dd5e1f18
parent8b60f1b0f658018fd9de62b2eb9f1472c416792e (diff)
downloadslackbuilds-c45dac6ecf0de5c1e02e6c3daad962462127f776.tar.gz
office/zathura-pdf-mupdf: Added (zathura support for mupdf backend)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
-rw-r--r--office/zathura-pdf-mupdf/README14
-rw-r--r--office/zathura-pdf-mupdf/slack-desc19
-rw-r--r--office/zathura-pdf-mupdf/zathura-pdf-mupdf.SlackBuild70
-rw-r--r--office/zathura-pdf-mupdf/zathura-pdf-mupdf.info10
4 files changed, 113 insertions, 0 deletions
diff --git a/office/zathura-pdf-mupdf/README b/office/zathura-pdf-mupdf/README
new file mode 100644
index 0000000000..8e227f7c20
--- /dev/null
+++ b/office/zathura-pdf-mupdf/README
@@ -0,0 +1,14 @@
+zathura-pdf-mupdf (zathura support for mupdf backend)
+
+The zathura-pdf-mupdf plugin adds PDF support to zathura by using the
+mupdf rendering library (replacing the poppler-based PDF support from
+the zathura package).
+
+This requires zathura and mupdf.
+
+Note: This overwrites /usr/lib/zathura/pdf.so from the zathura
+package (replace lib with lib64 for 64-bit systems). zathura doesn't
+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.
diff --git a/office/zathura-pdf-mupdf/slack-desc b/office/zathura-pdf-mupdf/slack-desc
new file mode 100644
index 0000000000..2079740546
--- /dev/null
+++ b/office/zathura-pdf-mupdf/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+zathura-pdf-mupdf: zathura-pdf-mupdf (zathura support for mupdf backend)
+zathura-pdf-mupdf:
+zathura-pdf-mupdf: The zathura-pdf-mupdf plugin adds PDF support to zathura by using
+zathura-pdf-mupdf: the mupdf rendering library.
+zathura-pdf-mupdf:
+zathura-pdf-mupdf: This requires zathura and mupdf.
+zathura-pdf-mupdf:
+zathura-pdf-mupdf:
+zathura-pdf-mupdf:
+zathura-pdf-mupdf:
+zathura-pdf-mupdf:
diff --git a/office/zathura-pdf-mupdf/zathura-pdf-mupdf.SlackBuild b/office/zathura-pdf-mupdf/zathura-pdf-mupdf.SlackBuild
new file mode 100644
index 0000000000..1fdcd6d3bc
--- /dev/null
+++ b/office/zathura-pdf-mupdf/zathura-pdf-mupdf.SlackBuild
@@ -0,0 +1,70 @@
+#!/bin/bash
+
+# Slackware build script for zathura-pdf-mupdf
+
+# Written by B. Watson (yalhcru@gmail.com)
+
+# Licensed under the WTFPL. See http://sam.zoy.org/wtfpl/ for details.
+
+PRGNAM=zathura-pdf-mupdf
+VERSION=${VERSION:-0.2.0}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+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 .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -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
+
+make VERBOSE=1
+strip *.so
+make install DESTDIR=$PKG
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/office/zathura-pdf-mupdf/zathura-pdf-mupdf.info b/office/zathura-pdf-mupdf/zathura-pdf-mupdf.info
new file mode 100644
index 0000000000..5b0cc76b32
--- /dev/null
+++ b/office/zathura-pdf-mupdf/zathura-pdf-mupdf.info
@@ -0,0 +1,10 @@
+PRGNAM="zathura-pdf-mupdf"
+VERSION="0.2.0"
+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.0.tar.gz"
+DOWNLOAD_x86_64=""
+MD5SUM="a0aba55c303e2aa6ac4e13263c14a492"
+MD5SUM_x86_64=""
+MAINTAINER="B. Watson"
+EMAIL="yalhcru@gmail.com"
+APPROVED="rworkman"