summaryrefslogtreecommitdiff
path: root/office/mupdf/mupdf.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2012-09-09 12:13:49 +0200
committerRobby Workman <rworkman@slackbuilds.org>2012-09-09 19:59:28 -0500
commitcd5060532dd980d499bd76a33fc263655116df6e (patch)
treee67fbcd049905cf7dbfec7a262f1e2ea6527ffec /office/mupdf/mupdf.SlackBuild
parent5c43e5f80f9e665bae6d22b945801ca3e6df2402 (diff)
downloadslackbuilds-cd5060532dd980d499bd76a33fc263655116df6e.tar.gz
office/mupdf: Updated for version 1.1, added a fix for openjpeg
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'office/mupdf/mupdf.SlackBuild')
-rw-r--r--office/mupdf/mupdf.SlackBuild12
1 files changed, 5 insertions, 7 deletions
diff --git a/office/mupdf/mupdf.SlackBuild b/office/mupdf/mupdf.SlackBuild
index f69a5b8095..9321e92eca 100644
--- a/office/mupdf/mupdf.SlackBuild
+++ b/office/mupdf/mupdf.SlackBuild
@@ -5,8 +5,8 @@
# Written by Hubert Hesse (slackbuilds@hubertscorner.de)
PRGNAM=mupdf
-VERSION=${VERSION:-0.8.165}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-1.1}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -40,9 +40,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
+rm -rf $PRGNAM-$VERSION-source
tar xvf $CWD/$PRGNAM-$VERSION-source.tar.gz
-cd $PRGNAM-$VERSION
+cd $PRGNAM-$VERSION-source
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -51,13 +51,11 @@ find . \
-exec chmod 644 {} \;
sed -i "s,(prefix)/lib,(prefix)/lib$LIBDIRSUFFIX," Makefile
+sed -i "s,openjpeg.h,openjpeg-1.5/openjpeg.h," fitz/image_jpx.c
CFLAGS="$SLKCFLAGS" make build=release prefix=/usr
make build=release prefix=$PKG/usr install
-# don't overwrite poppler's pdfinfo
-mv $PKG/usr/bin/pdfinfo $PKG/usr/bin/pdfinfo-mupdf
-
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true