summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArn0 <yth@ythogtha.org>2021-03-11 18:10:43 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-03-13 08:36:05 +0700
commitf97206f39090e06904b9a0a1d6434928e9bfb8eb (patch)
tree43f311b2fd4d3bc92f3c6c1f0e80433b51b9f6c4
parent9e22ea6507e42d4e1110dfd190a9fb9544ecab79 (diff)
downloadslackbuilds-f97206f39090e06904b9a0a1d6434928e9bfb8eb.tar.gz
games/endless-sky: allows for building on both -current and -14.2
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--games/endless-sky/endless-sky.SlackBuild3
-rw-r--r--games/endless-sky/include-string.diff11
2 files changed, 13 insertions, 1 deletions
diff --git a/games/endless-sky/endless-sky.SlackBuild b/games/endless-sky/endless-sky.SlackBuild
index dcc4c3a157..17fdc9e6d6 100644
--- a/games/endless-sky/endless-sky.SlackBuild
+++ b/games/endless-sky/endless-sky.SlackBuild
@@ -22,7 +22,7 @@
PRGNAM=endless-sky
VERSION=${VERSION:-0.9.12}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -64,6 +64,7 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
+patch -p0 < $CWD/include-string.diff
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
diff --git a/games/endless-sky/include-string.diff b/games/endless-sky/include-string.diff
new file mode 100644
index 0000000000..b36d97adb5
--- /dev/null
+++ b/games/endless-sky/include-string.diff
@@ -0,0 +1,11 @@
+--- source/Panel.h~ 2020-05-01 21:02:38.000000000 +0200
++++ source/Panel.h 2020-12-17 15:29:57.592856826 +0100
+@@ -17,7 +17,7 @@
+
+ #include <functional>
+ #include <list>
+-
++#include <string>
+ #include <SDL2/SDL.h>
+
+ class Command;