aboutsummaryrefslogtreecommitdiff
path: root/games/bstone/bstone.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2017-08-07 13:52:23 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-08-12 06:58:46 +0700
commitad08b383f13c05101ff7697f0f60a59be9c6858e (patch)
treede70ec25c52ed94de1f643cfc30645d2ee666523 /games/bstone/bstone.SlackBuild
parentb5c3eeaa174c66891e2f66f7bfe1e298e79ae4d6 (diff)
games/bstone: Updated for version 1.1.8.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'games/bstone/bstone.SlackBuild')
-rw-r--r--games/bstone/bstone.SlackBuild15
1 files changed, 7 insertions, 8 deletions
diff --git a/games/bstone/bstone.SlackBuild b/games/bstone/bstone.SlackBuild
index d64d16cdf4c79..572626244f14d 100644
--- a/games/bstone/bstone.SlackBuild
+++ b/games/bstone/bstone.SlackBuild
@@ -6,10 +6,12 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20170807 bkw: update for v1.1.8, use upstream's icon instead of mine.
+
# 20170621 bkw: fix build on -current
PRGNAM=bstone
-VERSION=${VERSION:-1.1.7}
+VERSION=${VERSION:-1.1.8}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -55,9 +57,6 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# fix a missing include, needed for gcc7
-sed -i '1i#include <memory>' bstone_memory_binary_reader.cpp
-
# look in /usr/share/games/bstone for game data files, not the
# directory the executable lives in. the --data_dir option can
# still override this.
@@ -74,7 +73,7 @@ cd build
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DMAN_INSTALL_DIR=/usr/man \
- -DCMAKE_BUILD_TYPE=Release ..
+ -DCMAKE_BUILD_TYPE=Release ../src
make
mkdir -p $PKG/usr/games $PKG/usr/share/games/$PRGNAM
@@ -85,15 +84,15 @@ cd build
install -oroot -groot -m0644 *.BS1 $PKG/usr/share/games/$PRGNAM
cd ..
-# man page and .desktop written for this build. icon made from screenshot
-# of the game's title screen.
+# man page and .desktop written for this build. icon converted from upstream's
+# src/sys/win32/bstone_icon.ico.
mkdir -p $PKG/usr/share/applications $PKG/usr/share/pixmaps $PKG/usr/man/man6
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 bstone_todo.txt $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
mkdir -p $PKG/install