diff options
author | Robby Workman <rw@rlworkman.net> | 2010-05-13 00:40:48 +0200 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-05-13 00:40:48 +0200 |
commit | e87afa1f51811b17e1d4455f0782d5fd9e867d51 (patch) | |
tree | c59f17f08f3371a87d25310a436a31d714fe8863 /system/krusader/krusader.SlackBuild | |
parent | 2a07dfb072911b2193ff8788978e879db253c3fe (diff) | |
download | slackbuilds-e87afa1f51811b17e1d4455f0782d5fd9e867d51.tar.gz |
system/krusader: Updated for version 2.0.0
Diffstat (limited to 'system/krusader/krusader.SlackBuild')
-rw-r--r-- | system/krusader/krusader.SlackBuild | 39 |
1 files changed, 17 insertions, 22 deletions
diff --git a/system/krusader/krusader.SlackBuild b/system/krusader/krusader.SlackBuild index d46cf2439d..7995325b50 100644 --- a/system/krusader/krusader.SlackBuild +++ b/system/krusader/krusader.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for krusader -# Copyright 2006-2008 Robby Workman, Northport, Alabama, USA +# Copyright 2006-2009 Robby Workman, Northport, Alabama, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=krusader -VERSION=1.90.0 +VERSION=2.0.0 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -35,15 +35,13 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" -fi - -# Avoid a version number in .la files: -if [ -d /usr/lib/qt ]; then - QTDIR=/usr/lib/qt + LIBDIRSUFFIX="64" fi set -e @@ -57,32 +55,29 @@ cd $PRGNAM-$VERSION chown -R root:root . chmod -R a-s,u+w,go+r-w . -CFLAGS=$SLKCFLAGS \ -CXXFLAGS=$SLKCFLAGS \ -./configure \ - --prefix=/usr \ - --sysconfdir=/etc/kde \ - --program-prefix="" \ - --program-suffix="" \ - --build=$ARCH-slackware-linux - +cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DMAN_INSTALL_DIR=/usr/man \ + -DSYSCONF_INSTALL_DIR=/etc/kde \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + . 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 +cp -a \ + AUTHORS COPYING FAQ README TODO krusader.lsm doc/actions_tutorial.txt \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -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 cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |