games/bstone: Updated for version 1.1.14.

Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
B. Watson 2019-11-27 14:20:06 -05:00 committed by Willy Sudiarto Raharjo
parent 3057f2f851
commit d4e93bf15f
No known key found for this signature in database
GPG key ID: 887B8374D7333381
3 changed files with 31 additions and 27 deletions

View file

@ -6,6 +6,9 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# 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.
@ -13,7 +16,7 @@
# 20170621 bkw: fix build on -current
PRGNAM=bstone
VERSION=${VERSION:-1.1.9}
VERSION=${VERSION:-1.1.14}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -53,11 +56,8 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz
cd $PRGNAM-$VERSION
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 {} \+
# look in /usr/share/games/bstone for game data files, not the
# directory the executable lives in. the --data_dir option can

View file

@ -1,9 +1,9 @@
PRGNAM="bstone"
VERSION="1.1.9"
VERSION="1.1.14"
HOMEPAGE="http://bibendovsky.github.io/bstone/"
DOWNLOAD="https://github.com/bibendovsky/bstone/archive/v1.1.9/bstone-1.1.9.tar.gz \
DOWNLOAD="https://github.com/bibendovsky/bstone/archive/v1.1.14/bstone-1.1.14.tar.gz \
https://archive.org/download/BlakeStoneAliensOfGold/1bs30.zip"
MD5SUM="77ae990a9ba79ae2a355d95a052ae054 \
MD5SUM="3da8860ffeff60e33b69d142170231e8 \
a63c88fc5b399ffb5ed42dc215321f36"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""

View file

@ -1,25 +1,29 @@
diff -Naur bstone-1.1.8/src/3d_main.cpp bstone-1.1.8.patched/src/3d_main.cpp
--- bstone-1.1.8/src/3d_main.cpp 2017-08-06 06:52:35.000000000 -0400
+++ bstone-1.1.8.patched/src/3d_main.cpp 2017-08-07 12:33:38.268538355 -0400
@@ -9658,20 +9658,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 @@
const std::string& get_default_data_dir()
{
- static std::string result;
- static auto is_initialized = false;
-
- if (!is_initialized) {
- if (!is_initialized)
- {
- is_initialized = true;
-
- auto sdl_dir = ::SDL_GetBasePath();
-
- if (sdl_dir) {
- if (sdl_dir)
- {
- result = sdl_dir;
- ::SDL_free(sdl_dir);
- }
- }
-
-#ifdef __vita__
- result = "ux0:/data/bstone/";
-#endif
+ static std::string result = "/usr/share/games/bstone/";
return result;
}
// BBi