summaryrefslogtreecommitdiff
path: root/games/blobwars/blobwars.SlackBuild
diff options
context:
space:
mode:
authorTim Dickson (timsoft) <dickson.tim@googlemail.com>2016-10-20 20:25:18 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-10-20 20:25:18 +0700
commit75150d8bc5e43811bed36a2abfdf013459e726a4 (patch)
tree97a07f87d13ecf24c4469f5849fb6b4cc4a1df0f /games/blobwars/blobwars.SlackBuild
parent7a94ad2569c8e2f48cb85040a8942e4d99cda365 (diff)
downloadslackbuilds-75150d8bc5e43811bed36a2abfdf013459e726a4.tar.gz
games/blobwars: Updated for version 2.00.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/blobwars/blobwars.SlackBuild')
-rw-r--r--games/blobwars/blobwars.SlackBuild36
1 files changed, 19 insertions, 17 deletions
diff --git a/games/blobwars/blobwars.SlackBuild b/games/blobwars/blobwars.SlackBuild
index fa1f4a8875..3ab35020a6 100644
--- a/games/blobwars/blobwars.SlackBuild
+++ b/games/blobwars/blobwars.SlackBuild
@@ -1,16 +1,22 @@
#!/bin/sh
# Slackware build script for blobwars
-# Written by Tim Dickson tim@tree-of-life.co.uk
+# Written by Tim Dickson dickson.tim@googlemail.com
+# (C) 2016
+# changelog
+#
+# 17/10/2016. version 2.00. change to sdl2, project now includes
+# desktop icons etc. and mskefile includes DESTDIR support.
+# doc dir still gets fixed for slackware defaults.
PRGNAM=blobwars
-VERSION=${VERSION:-1.19}
-BUILD=${BUILD:-3}
+VERSION=${VERSION:-2.00}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -21,8 +27,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -36,7 +42,6 @@ else
fi
set -e
-
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
@@ -50,24 +55,21 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-if [ "$ARCH" = "x86_64" ]; then
- sed -i -e 's/-g games//' -e 's/-Werror//' makefile
-fi
-
#make new game default more child friendly
sed -i 's/gore = 1/gore = 0/' src/CGame.cpp
-# Fix doc installation path
-sed -i 's/share\/doc/doc/' makefile
+
+#fix hard-coded manual location
+sed -i "s_blobwars/man_blobwars-$VERSION/man_" data/titleWidgets
# Compile the application and install it into the $PKG directory
-RELEASE=1 make
-make install DESTDIR=$PKG
+#doc dir fixed for slackware and help display bug.
+#note. the trailing / on the first make command is intentional.
+make USEPAK=1 CFLAGS="$SLKCFLAGS" DOCDIR="/usr/doc/$PRGNAM-$VERSION/"
+make install USEPAK=1 DESTDIR=$PKG DOCDIR="/usr/doc/$PRGNAM-$VERSION"
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-# Also, include the SlackBuild script in the documentation directory
-mv $PKG/usr/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install