diff options
author | Michiel van Wessem <michiel.van.wessem@gmail.com> | 2010-05-11 15:18:36 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 15:18:36 +0200 |
commit | 0c0a6ef60f6e09152b08139f388f341dd9cc0e0b (patch) | |
tree | 33e48793eebeec6e4998e311587ff2287dae98d2 /system/filelight/filelight.SlackBuild | |
parent | c2548d3351a4f0eddef2578aa8a5008cfd53ea9b (diff) | |
download | slackbuilds-0c0a6ef60f6e09152b08139f388f341dd9cc0e0b.tar.gz |
system/filelight: Initial import
Diffstat (limited to 'system/filelight/filelight.SlackBuild')
-rw-r--r-- | system/filelight/filelight.SlackBuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/system/filelight/filelight.SlackBuild b/system/filelight/filelight.SlackBuild new file mode 100644 index 0000000000..d81164524b --- /dev/null +++ b/system/filelight/filelight.SlackBuild @@ -0,0 +1,55 @@ +#!/bin/sh +# +# SlackBuild script for filelight +# Written by Michiel van Wessem (BP{k}) <michiel.van.wessem@gmail.com + +# Modified by the SlackBuilds.org project + +PRGNAM=filelight +VERSION=1.0 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +CWD=`pwd` +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +DOCFILES="AUTHORS COPYING COPYING-DOCS ChangeLog INSTALL NEWS README TODO" + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +fi + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +rm -rf $TMP/$PRGNAM-$VERSION +cd $TMP || exit 1 +tar -xjvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1 +cd $PRGNAM-$VERSION || exit 1 +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure --prefix=/opt/kde \ + --enable-final \ + --disable-debug \ + --program-prefix="" \ + --program-suffix="" \ + || exit 1 + +make || exit 1 +make install-strip DESTDIR=$PKG || exit 1 + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz |