From 4c4b36ede4cb24ecd6605ef8297f8e4c9b6513fc Mon Sep 17 00:00:00 2001 From: Tim Dickson Date: Wed, 20 May 2015 20:24:50 +0700 Subject: games/blobwars: Make game more child friendly. Signed-off-by: Willy Sudiarto Raharjo --- games/blobwars/blobwars.SlackBuild | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'games/blobwars/blobwars.SlackBuild') 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 -- cgit v1.2.3