summaryrefslogtreecommitdiff
path: root/games/icebreaker/icebreaker.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2010-05-12 23:29:23 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-12 23:29:23 +0200
commit20eb94d46acb721b51a2d2ce0520578f9b76bb2c (patch)
treec3b3de5615c9a9e48e77cf757e2485ab114e0491 /games/icebreaker/icebreaker.SlackBuild
parentc068d7ff523babc1fa8a1a21d479e7fb7025539d (diff)
downloadslackbuilds-20eb94d46acb721b51a2d2ce0520578f9b76bb2c.tar.gz
games/icebreaker: Added to 12.2 repository
Diffstat (limited to 'games/icebreaker/icebreaker.SlackBuild')
-rw-r--r--games/icebreaker/icebreaker.SlackBuild71
1 files changed, 71 insertions, 0 deletions
diff --git a/games/icebreaker/icebreaker.SlackBuild b/games/icebreaker/icebreaker.SlackBuild
new file mode 100644
index 0000000000..7442c31fc7
--- /dev/null
+++ b/games/icebreaker/icebreaker.SlackBuild
@@ -0,0 +1,71 @@
+#!/bin/sh
+
+# Slackware build script for icebreaker
+
+# Written by B. Watson (yalhcru@gmail.com)
+
+PRGNAM=icebreaker
+VERSION=${VERSION:-1.2.1}
+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"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tgz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+chmod -R a-s,u+w,go+r-w .
+
+make \
+ prefix=/usr \
+ mandir=/usr/man \
+ highscoredir=/var/state/$PRGNAM \
+ OPTIMIZE="$SLKCFLAGS"
+
+strip $PRGNAM
+make install \
+ prefix=$PKG/usr \
+ mandir=$PKG/usr/man \
+ highscoredir=$PKG/var/state/$PRGNAM
+
+# We prefer the binary to live in /usr/games
+mv $PKG/usr/bin $PKG/usr/games
+
+sed -i -e "s,/var/lib/games,/var/state/$PRGNAM," $PKG/usr/man/man6/$PRGNAM.6
+gzip -9 $PKG/usr/man/man6/$PRGNAM.6
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp ChangeLog LICENSE README TODO $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/usr/share/applications
+cp $CWD/$PRGNAM.desktop $PKG/usr/share/applications
+
+mkdir -p $PKG/usr/share/pixmaps
+convert ${PRGNAM}_48.bmp $PRGNAM.xpm
+cp $PRGNAM.xpm $PKG/usr/share/pixmaps
+
+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