summaryrefslogtreecommitdiff
path: root/games/madbomber/madbomber.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2010-05-13 00:26:38 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:26:38 +0200
commitce1cc032ade015b88b54f77746a91de44479be00 (patch)
treec216c24259ba2bbde9ec00457b99ab7bb7d5b0e8 /games/madbomber/madbomber.SlackBuild
parenta26b3a6119943ec7f1ac89d6a0b00999089e7bf1 (diff)
downloadslackbuilds-ce1cc032ade015b88b54f77746a91de44479be00.tar.gz
games/madbomber: Updated for version 0.2.5
Diffstat (limited to 'games/madbomber/madbomber.SlackBuild')
-rw-r--r--games/madbomber/madbomber.SlackBuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/games/madbomber/madbomber.SlackBuild b/games/madbomber/madbomber.SlackBuild
index 4447b886df..26c18808b6 100644
--- a/games/madbomber/madbomber.SlackBuild
+++ b/games/madbomber/madbomber.SlackBuild
@@ -19,10 +19,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
set -e
@@ -40,6 +43,7 @@ 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/
@@ -62,4 +66,4 @@ 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
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}