aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2020-08-04 18:26:44 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-08-29 10:08:35 +0700
commit126627d9d05ba9ff5fc84ad3e3517dd0a25879b0 (patch)
tree5d64414c090a738e281a7557fdc14f826da1533c
parentb2a034dc13ac0d5f21f909de88bb7e785b34d4d0 (diff)
games/bstone: Updated for version 1.2.8.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--games/bstone/bstone.SlackBuild7
-rw-r--r--games/bstone/bstone.info6
-rw-r--r--games/bstone/datadir.diff20
3 files changed, 13 insertions, 20 deletions
diff --git a/games/bstone/bstone.SlackBuild b/games/bstone/bstone.SlackBuild
index d03d5695b455e..8659bccb19d7c 100644
--- a/games/bstone/bstone.SlackBuild
+++ b/games/bstone/bstone.SlackBuild
@@ -6,19 +6,16 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20200804 bkw: update for v1.2.8. datadir.diff changed again.
# 20200222 bkw: update for v1.1.16_2.
-
# 20191127 bkw: update for v1.1.14. datadir.diff had to change so we can't
# build old versions any more.
-
# 20170921 bkw: update for v1.1.9.
-
# 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.16_2}
+VERSION=${VERSION:-1.2.8}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
diff --git a/games/bstone/bstone.info b/games/bstone/bstone.info
index 070dafbff42af..7e1d1b3f5798b 100644
--- a/games/bstone/bstone.info
+++ b/games/bstone/bstone.info
@@ -1,9 +1,9 @@
PRGNAM="bstone"
-VERSION="1.1.16_2"
+VERSION="1.2.8"
HOMEPAGE="http://bibendovsky.github.io/bstone/"
-DOWNLOAD="https://github.com/bibendovsky/bstone/archive/v1.1.16-2/bstone-1.1.16-2.tar.gz \
+DOWNLOAD="https://github.com/bibendovsky/bstone/archive/v1.2.8/bstone-1.2.8.tar.gz \
https://archive.org/download/BlakeStoneAliensOfGold/1bs30.zip"
-MD5SUM="bf025e3e20c9866a23d7a0eb615d0a15 \
+MD5SUM="42d35192e5d944bbffe4785c0460a0d3 \
a63c88fc5b399ffb5ed42dc215321f36"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
diff --git a/games/bstone/datadir.diff b/games/bstone/datadir.diff
index ebb339fe27103..19a7100c32ae9 100644
--- a/games/bstone/datadir.diff
+++ b/games/bstone/datadir.diff
@@ -1,7 +1,7 @@
-diff -Naur bstone-1.1.14/src/3d_main.cpp bstone-1.1.14.patched/src/3d_main.cpp
---- bstone-1.1.14/src/3d_main.cpp 2019-11-09 05:08:15.000000000 -0500
-+++ bstone-1.1.14.patched/src/3d_main.cpp 2019-11-27 14:08:41.481084182 -0500
-@@ -10523,24 +10523,7 @@
+diff -Naur bstone-1.2.8/src/3d_main.cpp bstone-1.2.8.patched/src/3d_main.cpp
+--- bstone-1.2.8/src/3d_main.cpp 2020-07-10 09:58:35.000000000 -0400
++++ bstone-1.2.8.patched/src/3d_main.cpp 2020-08-04 03:07:36.266707676 -0400
+@@ -10722,20 +10722,7 @@
const std::string& get_default_data_dir()
{
@@ -12,17 +12,13 @@ diff -Naur bstone-1.1.14/src/3d_main.cpp bstone-1.1.14.patched/src/3d_main.cpp
- {
- is_initialized = true;
-
-- auto sdl_dir = ::SDL_GetBasePath();
+- result = bstone::file_system::get_working_dir();
-
-- if (sdl_dir)
-- {
-- result = sdl_dir;
-- ::SDL_free(sdl_dir);
-- }
-- }
-#ifdef __vita__
-- result = "ux0:/data/bstone/";
+- result = "ux0:/data/bstone/";
-#endif
+- }
+-
+ static std::string result = "/usr/share/games/bstone/";
return result;
}