diff options
author | B. Watson <yalhcru@gmail.com> | 2021-10-04 19:40:27 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-10-13 00:52:32 +0700 |
commit | 48c94e9d3e6650986333e1f2942f0dbad05b7644 (patch) | |
tree | 0d172ab128cc2c6e5318faf0afb6b6887a889b33 /games/bstone/bstone.SlackBuild | |
parent | 31acb70e8382c24971ebb41962c7a48ce7d81d56 (diff) |
games/bstone: Updated for version 1.2.11.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/bstone/bstone.SlackBuild')
-rw-r--r-- | games/bstone/bstone.SlackBuild | 35 |
1 files changed, 24 insertions, 11 deletions
diff --git a/games/bstone/bstone.SlackBuild b/games/bstone/bstone.SlackBuild index 770961632baa7..56ac3270340df 100644 --- a/games/bstone/bstone.SlackBuild +++ b/games/bstone/bstone.SlackBuild @@ -6,6 +6,13 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20211004 bkw: +# - update for v1.2.11. +# - include .txt version of license. +# - datadir.diff changed again. +# - update .desktop file. +# - better README doc on how to play the full version. + # 20201219 bkw: update for v1.2.9. # 20200804 bkw: update for v1.2.8. datadir.diff changed again. # 20200222 bkw: update for v1.1.16_2. @@ -18,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=bstone -VERSION=${VERSION:-1.2.9} +VERSION=${VERSION:-1.2.11} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -33,9 +40,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 @@ -65,7 +69,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$SRCVER -tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz || tar xvf $CWD/v$SRCVER.tar.gz +tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz cd $PRGNAM-$SRCVER chown -R root:root . find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ @@ -78,7 +82,8 @@ patch -p1 < $CWD/datadir.diff # make install and install/strip are borked, do manual install. # always include the shareware data in the package, the game will -# only use it if the user hasn't installed the full version. +# automatically use it if the user hasn't installed the full version, +# or offer a choice of full version or shareware if he has both. mkdir -p build cd build cmake \ @@ -87,11 +92,11 @@ cd build -DCMAKE_INSTALL_PREFIX=/usr \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ -DMAN_INSTALL_DIR=/usr/man \ - -DCMAKE_BUILD_TYPE=Release ../src + -DCMAKE_BUILD_TYPE=Release .. make mkdir -p $PKG/usr/games $PKG/usr/share/games/$PRGNAM - install -s -m0755 $PRGNAM $PKG/usr/games + install -s -m0755 src/$PRGNAM $PKG/usr/games unzip $CWD/1bs30.zip unzip BSSW30.SHR \*.BS1 @@ -105,9 +110,17 @@ cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png gzip -9c < $CWD/$PRGNAM.6 > $PKG/usr/man/man6/$PRGNAM.6.gz -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a LICENSE README.md *.doc src/bstone_todo.txt $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +# the original source code license is supplied only as a MS word .doc +# file. we ship it as-is, but rename it to something without spaces in +# the filename. also, ship a pre-converted text version (created with +# wvText, then hand-edited to fix the formatting). +PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION +LIC=blake_stone_source_code_license +mkdir -p $PKGDOC +cp -a LICENSE README.md TODO.md CHANGE* $PKGDOC +cp -a *.doc $PKGDOC/$LIC.doc +cat $CWD/$LIC.txt > $PKGDOC/$LIC.txt +cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |