summaryrefslogtreecommitdiff
path: root/desktop/blended/blended.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/blended/blended.SlackBuild')
-rw-r--r--desktop/blended/blended.SlackBuild63
1 files changed, 63 insertions, 0 deletions
diff --git a/desktop/blended/blended.SlackBuild b/desktop/blended/blended.SlackBuild
new file mode 100644
index 0000000000..ad03e65734
--- /dev/null
+++ b/desktop/blended/blended.SlackBuild
@@ -0,0 +1,63 @@
+#!/bin/sh
+
+# Slackware build script for blended
+
+# Written by core (eroc@linuxmail.org)
+
+set -e
+
+PRGNAM=blended
+PRGNAMALT=Blended
+VERSION=0.3
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+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"
+fi
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar -jxvf $CWD/*-$PRGNAMALT-$VERSION.tar.bz2
+mv $PRGNAMALT-$VERSION $PRGNAM-$VERSION
+cd $PRGNAM-$VERSION
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+KDEPREF=$(kde-config --prefix) || true
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=$KDEPREF
+
+make
+make install DESTDIR=$PKG
+
+( 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
+)
+
+# Integrate the color scheme
+mkdir -p $PKG/$KDEPREF/share/apps/kdisplay/color-schemes/
+cat $PRGNAMALT.kcsrc > $PKG/$KDEPREF/share/apps/kdisplay/color-schemes/$PRGNAMALT.kcsrc
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $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