xap/mupdf: Upgraded to mupdf-1.2.

slackware-14.2
Damien Goutte-Gattat 10 years ago
parent 62dee0ff02
commit 3d35924ef1
  1. 1
      xap/mupdf/mupdf-1.1-source.tar.gz.sha1
  2. 1
      xap/mupdf/mupdf-1.2-source.zip.sha1
  3. 1
      xap/mupdf/mupdf-thirdparty-2012-08-14.zip.sha1
  4. 24
      xap/mupdf/mupdf.SlackBuild

@ -1 +0,0 @@
e2c2cd555d790ed97bd6507accf29817945dfe81 mupdf-1.1-source.tar.gz

@ -0,0 +1 @@
d521382b80b3d1f7b8ad6e00ceb91721aa5e1917 mupdf-1.2-source.zip

@ -1 +0,0 @@
c851c0f5e29f7cd18cecc8749a23f37a7a31c32a mupdf-thirdparty-2012-08-14.zip

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2012 Damien Goutte-Gattat
# Copyright (C) 2012,2013 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -26,11 +26,9 @@
# Source package infos
NAMESRC=${NAMESRC:-mupdf}
VERSION=${VERSION:-1.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION-source.tar.gz}
VERSION=${VERSION:-1.2}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION-source.zip}
WGET=${WGET:-http://mupdf.googlecode.com/files/$ARCHIVE}
EXTLIBS=mupdf-thirdparty-2012-08-14.zip
EXTLIBS_WGET=http://mupdf.googlecode.com/files/$EXTLIBS
# Build infos
NAMEPKG=${NAMEPKG:-mupdf}
@ -77,19 +75,14 @@ if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
if [ ! -r $EXTLIBS ]; then
wget -c -O $EXTLIBS.part "$EXTLIBS_WGET"
mv $EXTLIBS.part $EXTLIBS
fi
sha1sum -c $ARCHIVE.sha1 $EXTLIBS.sha1
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
sha1sum -c $ARCHIVE.sha1
NAME=$NAMEPKG-$VERSION-source
# Compile
cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
unzip $CWD/$ARCHIVE
cd $NAME
unzip $CWD/$EXTLIBS
CFLAGS=$CPUOPT \
make prefix=/usr -j $JOBS
make install prefix=$PKG/usr libdir=$PKG/usr/lib$LIBDIRSUFFIX mandir=$PKG/usr/man
@ -102,8 +95,9 @@ find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
find $PKG/usr/man -type f -exec gzip -9 {} \;
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 CONTRIBUTORS COPYING README $PKG/usr/doc/$NAME
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 CHANGES CONTRIBUTORS COPYING README \
$PKG/usr/doc/$NAMEPKG-$VERSION
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc

Loading…
Cancel
Save