summaryrefslogtreecommitdiff
path: root/games/blobwars/blobwars.SlackBuild
diff options
context:
space:
mode:
authorTim Dickson <dickson.tim@googlemail.com>2015-05-20 20:24:50 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-05-20 20:24:50 +0700
commit4c4b36ede4cb24ecd6605ef8297f8e4c9b6513fc (patch)
tree426de2b01b36518861d5e4d57bfec00597471533 /games/blobwars/blobwars.SlackBuild
parenteec1412f000a493165f1376bbe61560a4f749d44 (diff)
downloadslackbuilds-4c4b36ede4cb24ecd6605ef8297f8e4c9b6513fc.tar.gz
games/blobwars: Make game more child friendly.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/blobwars/blobwars.SlackBuild')
-rw-r--r--games/blobwars/blobwars.SlackBuild14
1 files changed, 8 insertions, 6 deletions
diff --git a/games/blobwars/blobwars.SlackBuild b/games/blobwars/blobwars.SlackBuild
index 6a6a77ad6d..fa1f4a8875 100644
--- a/games/blobwars/blobwars.SlackBuild
+++ b/games/blobwars/blobwars.SlackBuild
@@ -5,7 +5,7 @@
PRGNAM=blobwars
VERSION=${VERSION:-1.19}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -45,15 +45,17 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -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
@@ -61,7 +63,7 @@ sed -i 's/share\/doc/doc/' makefile
RELEASE=1 make
make install DESTDIR=$PKG
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+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