aboutsummaryrefslogtreecommitdiff
path: root/desktop/clearlooks/clearlooks.SlackBuild
diff options
context:
space:
mode:
authorBrian Muramatsu <brian@fhobia.org>2010-05-11 14:03:45 +0200
committerMichiel van Wessem <michiel@slackbuilds.org>2010-05-11 14:03:45 +0200
commit0967e029988e9c88ee2c4d1d4c6e7c48d0f5d3f9 (patch)
treef06e591d89e51120d0d2a720364174892d1fe5b9 /desktop/clearlooks/clearlooks.SlackBuild
parent17639f4ee8d9967775fdd3624167557300c71d01 (diff)
desktop/clearlooks: Initial import
Diffstat (limited to 'desktop/clearlooks/clearlooks.SlackBuild')
-rw-r--r--desktop/clearlooks/clearlooks.SlackBuild60
1 files changed, 60 insertions, 0 deletions
diff --git a/desktop/clearlooks/clearlooks.SlackBuild b/desktop/clearlooks/clearlooks.SlackBuild
new file mode 100644
index 0000000000000..0eb20716387ef
--- /dev/null
+++ b/desktop/clearlooks/clearlooks.SlackBuild
@@ -0,0 +1,60 @@
+#!/bin/sh
+
+# Slackware build script for clearlooks
+# Written by Brian Muramatsu (brian@fhobia.org)
+
+# Modified by the SlackBuilds.org project
+
+PRGNAM=clearlooks
+VERSION=0.6.2
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i386" ]; then
+ SLKCFLAGS="-O2 -march=i386 -mtune=i686"
+elif [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+fi
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP || exit 1
+rm -rf $PRGNAM-$VERSION
+tar xvjf $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=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ || exit 1
+
+make || exit 1
+make install DESTDIR=$PKG || exit 1
+
+( 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
+)
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING CREDITS ChangeLog INSTALL NEWS README TODO $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION
+find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;
+
+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