aboutsummaryrefslogtreecommitdiff
path: root/games/blobwars/blobwars.SlackBuild
diff options
context:
space:
mode:
authordsomero <xgizzmo@slackbuilds.org>2012-09-29 17:09:51 -0400
committerRobby Workman <rworkman@slackbuilds.org>2012-09-29 17:17:44 -0500
commit3b295623cc1c159049ba7673fbaa61d89d545767 (patch)
treeddedaf9e1d0c7edc6e9c01abd380f7f6934c9ea3 /games/blobwars/blobwars.SlackBuild
parent66e018468c316a938db75ee2490e78dc4b493795 (diff)
games/blobwars: Fixed (Handle icon files)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'games/blobwars/blobwars.SlackBuild')
-rw-r--r--games/blobwars/blobwars.SlackBuild10
1 files changed, 3 insertions, 7 deletions
diff --git a/games/blobwars/blobwars.SlackBuild b/games/blobwars/blobwars.SlackBuild
index 102d1a8498d81..37a83d095e820 100644
--- a/games/blobwars/blobwars.SlackBuild
+++ b/games/blobwars/blobwars.SlackBuild
@@ -5,15 +5,13 @@
PRGNAM=blobwars
VERSION=${VERSION:-1.19}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -37,7 +35,8 @@ else
LIBDIRSUFFIX=""
fi
-set -e # Exit on most errors
+set -e
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
@@ -62,7 +61,6 @@ sed -i 's/share\/doc/doc/' makefile
RELEASE=1 make
make install DESTDIR=$PKG
-# Strip binaries and libraries
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@@ -70,11 +68,9 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
mv $PKG/usr/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-# Copy the slack-desc and doinst.sh into ./install
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
-# Make the package; be sure to leave it in $OUTPUT
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}