aboutsummaryrefslogtreecommitdiff
path: root/libraries/guichan/guichan.SlackBuild
diff options
context:
space:
mode:
authorErik Hanson <erik@slackbuilds.org>2010-05-11 14:56:15 +0200
committerErik Hanson <erik@slackbuilds.org>2010-05-11 14:56:15 +0200
commit8014ab687095b56ff69f33ca8e6a460694be4d80 (patch)
tree52d9601a20b27afdeb444af0f6ac7ec4dcb6542d /libraries/guichan/guichan.SlackBuild
parent059b8477e30b1d264bafd684614848d94e09d627 (diff)
libraries/guichan: Initial import
Diffstat (limited to 'libraries/guichan/guichan.SlackBuild')
-rw-r--r--libraries/guichan/guichan.SlackBuild55
1 files changed, 55 insertions, 0 deletions
diff --git a/libraries/guichan/guichan.SlackBuild b/libraries/guichan/guichan.SlackBuild
new file mode 100644
index 0000000000000..e7c3cfa639307
--- /dev/null
+++ b/libraries/guichan/guichan.SlackBuild
@@ -0,0 +1,55 @@
+#!/bin/sh
+
+# Slackware build script for guichan
+# Written by Erik Hanson erik@slackbuilds.org
+
+PRGNAM=guichan
+VERSION=0.5.0
+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 || exit 1
+rm -rf $PRGNAM-$VERSION-src
+tar xzvf $CWD/$PRGNAM-$VERSION-src.tar.gz || exit 1
+cd $PRGNAM-$VERSION-src || exit 1
+chown -R root:root .
+chmod -R a-s,u+w,go+r-w .
+
+CFLAGS="$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 -ar AUTHORS COPYING ChangeLog NEWS README TODO docs/html \
+ $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