summaryrefslogtreecommitdiff
path: root/office
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
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')
-rw-r--r--office/mupdf/mupdf.SlackBuild12
-rw-r--r--office/mupdf/mupdf.info6
2 files changed, 8 insertions, 10 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
diff --git a/office/mupdf/mupdf.info b/office/mupdf/mupdf.info
index 369395c5ba..6f94269f83 100644
--- a/office/mupdf/mupdf.info
+++ b/office/mupdf/mupdf.info
@@ -1,8 +1,8 @@
PRGNAM="mupdf"
-VERSION="0.8.165"
+VERSION="1.1"
HOMEPAGE="http://www.mupdf.com/"
-DOWNLOAD="https://mupdf.googlecode.com/files/mupdf-0.8.165-source.tar.gz"
-MD5SUM="a95813737924e60d87a944d52b6a5120"
+DOWNLOAD="http://mupdf.googlecode.com/files/mupdf-1.1-source.tar.gz"
+MD5SUM="f7b5fd753f40aca207e9afd70d8f8edf"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="jbig2dec openjpeg"