LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   For the Krusader fans on slackware64 slackbuild (http://www.linuxquestions.org/questions/slackware-14/for-the-krusader-fans-on-slackware64-slackbuild-741520/)

ROXR 07-20-2009 06:03 PM

For the Krusader fans on slackware64 slackbuild
 
There are script for make package compatible with Slackware64

the slackbuild source: http://slackbuilds.org/slackbuilds/1...rusader.tar.gz

the source krusader 2.0.0: http://prdownloads.sourceforge.net/k...ar.gz?download

the krusader page:http://www.krusader.org/downloads.php

simply change original code for this.

Code:

#!/bin/sh

# Slackware64 build script for krusader

# Copyright 2006-2008  Robby Workman, Northport, Alabama, USA
# All rights reserved.
#


PRGNAM=krusader
VERSION=2.0.0
ARCH=${ARCH:-x86_64}
BUILD=${BUILD:-1}
TAG=${TAG:-_SB64}

CWD=$(pwd)
TMP=${TMP:-/tmp/SB64}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
 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:
if [ -d /usr/lib/qt ]; then
  QTDIR=/usr/lib/qt
fi

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R a-s,u+w,go+r-w .

CFLAGS=$SLKCFLAGS \
CXXFLAGS=$SLKCFLAGS \
cmake -DCMAKE_INSTALL_PREFIX=/usr/ -DQT_INCLUDES=/usr/share/qt4/include
#  --prefix=/usr \
#  --sysconfdir=/etc/kde \
#  --program-prefix="" \
#  --program-suffix="" \
#  --build=$ARCH-slackware-linux
#  --DQT_INCLUDES=/usr/share/qt4/include
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

#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



All times are GMT -5. The time now is 04:29 AM.