diff options
Diffstat (limited to 'games/blobwars/blobwars.SlackBuild')
-rw-r--r-- | games/blobwars/blobwars.SlackBuild | 33 |
1 files changed, 23 insertions, 10 deletions
diff --git a/games/blobwars/blobwars.SlackBuild b/games/blobwars/blobwars.SlackBuild index 476d700f53343..4d3f7b65b6420 100644 --- a/games/blobwars/blobwars.SlackBuild +++ b/games/blobwars/blobwars.SlackBuild @@ -9,11 +9,16 @@ # desktop icons etc. and mskefile includes DESTDIR support. # doc dir still gets fixed for slackware defaults. +# 20220219 bkw: Modified by SlackBuilds.org, BUILD=2: +# - fix build on Slackware 15.0. +# - make .desktop file validate. +# - update icon cache in doinst.sh. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=blobwars VERSION=${VERSION:-2.00} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -25,9 +30,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -61,9 +63,9 @@ 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 \ + -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 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ #make new game default more child friendly sed -i 's/gore = 1/gore = 0/' src/CGame.cpp @@ -71,13 +73,24 @@ sed -i 's/gore = 1/gore = 0/' src/CGame.cpp #fix hard-coded manual location sed -i "s_blobwars/man_blobwars-$VERSION/man_" data/titleWidgets +# 20220219 bkw: no sane way to override on the make command like... +sed -i 's, *-Werror,,' Makefile + +# 20220219 bkw: shut desktop-file-validate up. +sed -i '/^Encoding/d' icons/$PRGNAM.desktop + #doc dir fixed for slackware and help display bug. #note. the trailing / on the first make command is intentional. -make USEPAK=1 CFLAGS="$SLKCFLAGS -Wno-error=format-truncation=" DOCDIR="/usr/doc/$PRGNAM-$VERSION/" -make install USEPAK=1 DESTDIR=$PKG DOCDIR="/usr/doc/$PRGNAM-$VERSION" +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 +strip $PKG/usr/games/$PRGNAM cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |