diff options
Diffstat (limited to 'graphics/djview4')
-rw-r--r-- | graphics/djview4/djview4.SlackBuild | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/graphics/djview4/djview4.SlackBuild b/graphics/djview4/djview4.SlackBuild index 6546588b9f5a0..ae6e173fcf2ed 100644 --- a/graphics/djview4/djview4.SlackBuild +++ b/graphics/djview4/djview4.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for DjView4 -# Copyright 2008-2009 Murat D. Kadirov <banderols@gmail.com> +# Copyright 2008-2010 Murat D. Kadirov <banderols@gmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,15 +24,13 @@ PRGNAM=djview4 VERSION=${VERSION:-4.5} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: *) ARCH=$( uname -m ) ;; esac fi @@ -71,6 +69,10 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +if [ "$QTDIR" == "/opt/kde3/lib/qt3" ]; then + QTDIR=$QT4DIR +fi + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -101,10 +103,8 @@ cp $PKG/usr/share/djvu/djview4/desktop/hi32-djview4.png \ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -( cd $PKG/usr/man - find . -type f -exec gzip -9 {} \; - for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done -) +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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a COPYRIGHT COPYING INSTALL NEWS README* TODO $PKG/usr/doc/$PRGNAM-$VERSION |