summaryrefslogtreecommitdiff
path: root/office/qpdfview/qpdfview.SlackBuild
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/qpdfview.SlackBuild
parentfab324cfd12d6b5ae6fd523f3ca1ca8a924b11b0 (diff)
downloadslackbuilds-35358e63472d0358eb5db46f9eaf7e20849d5910.tar.gz
office/qpdfview: Updated for version 0.4.6.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'office/qpdfview/qpdfview.SlackBuild')
-rw-r--r--office/qpdfview/qpdfview.SlackBuild23
1 files changed, 8 insertions, 15 deletions
diff --git a/office/qpdfview/qpdfview.SlackBuild b/office/qpdfview/qpdfview.SlackBuild
index dde87d5922..7fe2d7296a 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}