aboutsummaryrefslogtreecommitdiff
path: root/office/qpdfview
diff options
context:
space:
mode:
authorDonald Cooley <dfc@warpmail.net>2013-11-13 20:31:35 -0600
committerRobby Workman <rworkman@slackbuilds.org>2013-11-13 20:31:35 -0600
commit35358e63472d0358eb5db46f9eaf7e20849d5910 (patch)
treee842d96245ff98f41606c990547bba66fbf8f23b /office/qpdfview
parentfab324cfd12d6b5ae6fd523f3ca1ca8a924b11b0 (diff)
office/qpdfview: Updated for version 0.4.6.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'office/qpdfview')
-rw-r--r--office/qpdfview/qpdfview.SlackBuild23
-rw-r--r--office/qpdfview/qpdfview.info10
2 files changed, 13 insertions, 20 deletions
diff --git a/office/qpdfview/qpdfview.SlackBuild b/office/qpdfview/qpdfview.SlackBuild
index dde87d59223e..7fe2d7296a97 100644
--- a/office/qpdfview/qpdfview.SlackBuild
+++ b/office/qpdfview/qpdfview.SlackBuild
@@ -21,11 +21,10 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#exit on errors
-set -e
+# Updated by Donald Cooley
PRGNAM=qpdfview
-VERSION=0.3.7
+VERSION=${VERSION:-0.4.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -39,13 +38,11 @@ if [ -z "$ARCH" ]; then
esac
fi
-#Set some basics
CWD=$(pwd)
-TMP=${TMP:-/tmp/SBo} # For consistency's sake, use this
+TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
-OUTPUT=${OUTPUT:-/tmp} # Drop the package in /tmp
+OUTPUT=${OUTPUT:-/tmp}
-# Set compiling FLAGS
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
@@ -60,7 +57,8 @@ else
LIBDIRSUFFIX=""
fi
-#Make the buildspace
+set -e
+
echo $PKG
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -77,17 +75,14 @@ find . \
-exec chmod 644 {} \;
#Configure qpdfview. Installation paths are correctly set in qpdfview.pri
-qmake QMAKE_CFLAGS="$SLKCFLAGS" QMAKE_CXXFLAGS="$SLKCFLAGS"
+qmake QMAKE_CFLAGS="$SLKCFLAGS" QMAKE_CXXFLAGS="$SLKCFLAGS" qpdfview.pro
-# Compile the application and install it into the $PKG directory
make
make INSTALL_ROOT=$PKG install
-#strip binaries and libraries
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
-#compress the man pages
mv -v $PKG/usr/share/man $PKG/usr/man
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
@@ -95,11 +90,9 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-#add slack-desc
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
-#create package
cd $PKG
-/sbin/makepkg -l n -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
+/sbin/makepkg -l n -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/office/qpdfview/qpdfview.info b/office/qpdfview/qpdfview.info
index 47366ffff688..cbd6e5fb51c7 100644
--- a/office/qpdfview/qpdfview.info
+++ b/office/qpdfview/qpdfview.info
@@ -1,10 +1,10 @@
PRGNAM="qpdfview"
-VERSION="0.3.7"
+VERSION="0.4.6"
HOMEPAGE="https://launchpad.net/qpdfview"
-DOWNLOAD="https://launchpad.net/qpdfview/trunk/0.3.7/+download/qpdfview-0.3.7.tar.gz"
-MD5SUM="2aed46338a10d98af9c815126b435025"
+DOWNLOAD="https://launchpad.net/qpdfview/trunk/0.4.6/+download/qpdfview-0.4.6.tar.gz"
+MD5SUM="00698bf5c0ba84c78c9ce3c04cf52410"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="Mark Noman"
-EMAIL="smithmark347@gmail.com"
+MAINTAINER="Donald Cooley"
+EMAIL="dfc@warpmail.net"