diff options
author | Robby Workman <rw@rlworkman.net> | 2010-05-11 22:26:45 +0200 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-05-11 22:26:45 +0200 |
commit | a68da6c8b635b90044ae9463efbd6fa46cb96ebd (patch) | |
tree | 7d2d68dfa39c32593b3184dbbc692becd47a6448 /system/krusader/krusader.SlackBuild | |
parent | efb625b7655af92a910a069fa4e9d64e2a767047 (diff) | |
download | slackbuilds-a68da6c8b635b90044ae9463efbd6fa46cb96ebd.tar.gz |
system/krusader: Updated for version 1.90.0
Diffstat (limited to 'system/krusader/krusader.SlackBuild')
-rw-r--r-- | system/krusader/krusader.SlackBuild | 41 |
1 files changed, 19 insertions, 22 deletions
diff --git a/system/krusader/krusader.SlackBuild b/system/krusader/krusader.SlackBuild index e4093763a5..d46cf2439d 100644 --- a/system/krusader/krusader.SlackBuild +++ b/system/krusader/krusader.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for krusader -# Copyright 2006-2007 Robby Workman (http://rlworkman.net) +# Copyright 2006-2008 Robby Workman, Northport, Alabama, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,14 +22,12 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# Modified by Michiel van Wessem for version 1.80.0 -# No additional license terms added - PRGNAM=krusader -VERSION=1.80.0 +VERSION=1.90.0 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -37,8 +35,10 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" -elif [ "$ARCH" = "i686" ]; then + elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" + elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" fi # Avoid a version number in .la files: @@ -46,12 +46,14 @@ if [ -d /usr/lib/qt ]; then QTDIR=/usr/lib/qt fi +set -e + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -cd $TMP || exit 1 +cd $TMP rm -rf $PRGNAM-$VERSION -tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 -cd $PRGNAM-$VERSION || exit 1 +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION chown -R root:root . chmod -R a-s,u+w,go+r-w . @@ -59,29 +61,24 @@ CFLAGS=$SLKCFLAGS \ CXXFLAGS=$SLKCFLAGS \ ./configure \ --prefix=/usr \ + --sysconfdir=/etc/kde \ --program-prefix="" \ --program-suffix="" \ - || exit 1 + --build=$ARCH-slackware-linux -make || exit 1 -make install DESTDIR=$PKG || exit 1 +make +make install DESTDIR=$PKG mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS COPYING CVSNEWS ChangeLog FAQ INSTALL README TODO krusader.lsm \ doc/actions_tutorial.txt $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -( cd $PKG - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null - find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null -) +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -if [ -d $PKG/usr/share/man ]; then - gzip -9 $PKG/usr/share/man/man?/* - mv $PKG/usr/share/man $PKG/usr -elif [ -d $PKG/usr/man ]; then - gzip -9 $PKG/usr/man/man?/* -fi +mv $PKG/usr/share/man $PKG/usr +gzip -9 $PKG/usr/man/man?/* mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |