summaryrefslogtreecommitdiff
path: root/games/madbomber/madbomber.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2010-05-12 23:29:26 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-12 23:29:26 +0200
commitfc32ee20694957df640a5960a4a7fd58efca770b (patch)
tree9c937378c5721905d335bfee3066e3f4f29f9128 /games/madbomber/madbomber.SlackBuild
parente241bc0896c0825f69810095b84d5b898284202e (diff)
downloadslackbuilds-fc32ee20694957df640a5960a4a7fd58efca770b.tar.gz
games/madbomber: Added to 12.2 repository
Diffstat (limited to 'games/madbomber/madbomber.SlackBuild')
-rw-r--r--games/madbomber/madbomber.SlackBuild65
1 files changed, 65 insertions, 0 deletions
diff --git a/games/madbomber/madbomber.SlackBuild b/games/madbomber/madbomber.SlackBuild
new file mode 100644
index 0000000000..4447b886df
--- /dev/null
+++ b/games/madbomber/madbomber.SlackBuild
@@ -0,0 +1,65 @@
+#!/bin/sh
+
+# Slackware build script for madbomber
+
+# Written by B. Watson (yalhcru@gmail.com)
+#
+# Modified by the SlackBuilds.org project.
+
+PRGNAM=madbomber
+VERSION=${VERSION:-0.2.5}
+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.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+chmod -R a-s,u+w,go+r-w .
+
+sed -i -e "s/-Wall/-Wall $SLKCFLAGS/" Makefile
+
+make BIN_PREFIX=/usr/games/ DATA_PREFIX=/usr/share/$PRGNAM/
+strip $PRGNAM
+mkdir -p $PKG/usr/games/ $PKG/usr/share/$PRGNAM/
+make install BIN_PREFIX=$PKG/usr/games DATA_PREFIX=$PKG/usr/share/$PRGNAM/
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp *.txt $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/usr/share/applications
+cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
+
+mkdir -p $PKG/usr/man/man6
+gzip -9c $CWD/$PRGNAM.6 > $PKG/usr/man/man6/$PRGNAM.6.gz
+
+# Don't need these:
+rm -f $PKG/usr/doc/$PRGNAM-$VERSION/INSTALL.txt
+rm -rf $PKG/usr/share/$PRGNAM/embedded
+
+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