diff options
author | B. Watson <yalhcru@gmail.com> | 2021-12-09 17:24:36 -0500 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2021-12-10 02:43:41 -0500 |
commit | e5b1cd6f99698eb0b95e43f5cda4a5d27cc9cba7 (patch) | |
tree | bac265de66a9918eaf9a278fe64a6a171a939728 /games/supermariowar/supermariowar.SlackBuild | |
parent | c0e7bcadb024065d51f5777c5deb84704cc24d43 (diff) |
games/supermariowar: Updated for version 2020_04_25.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'games/supermariowar/supermariowar.SlackBuild')
-rw-r--r-- | games/supermariowar/supermariowar.SlackBuild | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/games/supermariowar/supermariowar.SlackBuild b/games/supermariowar/supermariowar.SlackBuild index 31bfb0c66aff..54e7389887a3 100644 --- a/games/supermariowar/supermariowar.SlackBuild +++ b/games/supermariowar/supermariowar.SlackBuild @@ -6,12 +6,14 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20211209 bkw: updated for v2020_04_25 (latest beta). Note that the game +# uses SDL2 by default now. # 20170302 bkw: use long-format github URL cd $(dirname $0) ; CWD=$(pwd) PRGNAM=supermariowar -VERSION=${VERSION:-2.0beta1.1} +VERSION=${VERSION:-2020_04_25} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -24,9 +26,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 @@ -36,7 +35,7 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -TARVER="$( echo "$VERSION" | sed 's,beta,-beta.,' )" +TARVER="$( echo "$VERSION" | sed 's,_,-,g' )" if [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mtune=i686" @@ -60,14 +59,9 @@ cd $TMP rm -rf $PRGNAM-$TARVER tar xvf $CWD/$PRGNAM-$TARVER.tar.gz cd $PRGNAM-$TARVER -# thanks to the gentoo maintainers -cp $CWD/$PRGNAM-2.0_beta1-yaml-cpp-config.cmake cmake/Findyaml-cpp.cmake 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 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ # upstream ships these as zip files, but 'make install' expects them # to be unzipped. @@ -83,8 +77,6 @@ sed -i \ # implemented in 2.0beta1... screenshots still work, they're saved as # .bmp instead. -# -DUSE_SDL2_LIBS=ON will be supported in the future. - mkdir -p build cd build cmake \ @@ -103,6 +95,11 @@ cd .. # the executable bits set... chmod 0755 $PKG/usr/games/* +# new-style icons. tiny ones, since that's all they gave us. +# leave the .xpm icons in pixmaps. +mkdir -p $PKG/usr/share/icons/hicolor/32x32/apps +mv $PKG/usr/share/pixmaps/*.png $PKG/usr/share/icons/hicolor/32x32/apps + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION # get rid of the CRLFs in the docs for i in CHANGELOG CREDITS README.md docs/*.html docs/*.txt; do |