office/mupdf: Updated for version 1.1, added a fix for openjpeg

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2012-09-09 12:13:49 +02:00 committed by Robby Workman
parent 5c43e5f80f
commit cd5060532d
2 changed files with 8 additions and 10 deletions

View File

@ -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

View File

@ -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"