summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author B. Watson2017-06-21 22:46:03 +0200
committer Willy Sudiarto Raharjo2017-06-24 03:32:52 +0200
commita27a0e4bbaf339793ea1ce99df6b8337d7cb8dbc (patch)
treed62b2ddd147cf7732ecc9c0e7d46d3672f028c46
parentdf8c4bbc9535d54b46d56fa9a61c31c733a82547 (diff)
downloadslackbuilds-a27a0e4bbaf339793ea1ce99df6b8337d7cb8dbc.tar.gz
games/bstone: Fix build for -current.
Signed-off-by: B. Watson <yalhcru@gmail.com>
-rw-r--r--games/bstone/bstone.SlackBuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/games/bstone/bstone.SlackBuild b/games/bstone/bstone.SlackBuild
index 07a36fa60d..d64d16cdf4 100644
--- a/games/bstone/bstone.SlackBuild
+++ b/games/bstone/bstone.SlackBuild
@@ -6,6 +6,8 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20170621 bkw: fix build on -current
+
PRGNAM=bstone
VERSION=${VERSION:-1.1.7}
BUILD=${BUILD:-1}
@@ -53,6 +55,9 @@ 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.