summaryrefslogtreecommitdiffstats
path: root/games/supertux
diff options
context:
space:
mode:
Diffstat (limited to 'games/supertux')
-rw-r--r--games/supertux/supertux-0.6.2_rc1-boost-1.73.patch25
-rw-r--r--games/supertux/supertux.SlackBuild11
-rw-r--r--games/supertux/supertux.info6
3 files changed, 35 insertions, 7 deletions
diff --git a/games/supertux/supertux-0.6.2_rc1-boost-1.73.patch b/games/supertux/supertux-0.6.2_rc1-boost-1.73.patch
new file mode 100644
index 0000000000..55fa95b70f
--- /dev/null
+++ b/games/supertux/supertux-0.6.2_rc1-boost-1.73.patch
@@ -0,0 +1,25 @@
+From dec7fb943c532f855e5c0ae2eb39d2d82a46a506 Mon Sep 17 00:00:00 2001
+From: Lars Wendler <polynomial-c@gentoo.org>
+Date: Sat, 9 May 2020 03:04:02 +0200
+Subject: [PATCH] Fix build with boost-1.73
+
+---
+ src/editor/object_settings.hpp | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/editor/object_settings.hpp b/src/editor/object_settings.hpp
+index bc9049a94..15b77b1e4 100644
+--- a/src/editor/object_settings.hpp
++++ b/src/editor/object_settings.hpp
+@@ -22,6 +22,8 @@
+
+ #include "editor/object_option.hpp"
+
++#include <algorithm>
++
+ class Color;
+ enum class Direction;
+ enum class WalkMode;
+--
+2.26.2
+
diff --git a/games/supertux/supertux.SlackBuild b/games/supertux/supertux.SlackBuild
index 122b06e07b..e3f5b251f2 100644
--- a/games/supertux/supertux.SlackBuild
+++ b/games/supertux/supertux.SlackBuild
@@ -25,7 +25,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=supertux
-VERSION=${VERSION:-0.6.1}
+VERSION=${VERSION:-0.6.2_rc.1}
+SRCVERSION=$(echo $VERSION | tr _ - )
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -61,9 +62,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/SuperTux-v$VERSION-Source.tar.gz
-cd SuperTux-v$VERSION-Source
+rm -rf $PRGNAM-$SRCVERSION
+tar xvf $CWD/SuperTux-v$SRCVERSION-Source.tar.gz
+cd SuperTux-v$SRCVERSION-Source
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -71,6 +72,8 @@ 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 {} \;
+patch -p1 < $CWD/supertux-0.6.2_rc1-boost-1.73.patch
+
mkdir -p build
cd build
cmake \
diff --git a/games/supertux/supertux.info b/games/supertux/supertux.info
index 6107a41d6f..b25959b728 100644
--- a/games/supertux/supertux.info
+++ b/games/supertux/supertux.info
@@ -1,8 +1,8 @@
PRGNAM="supertux"
-VERSION="0.6.1"
+VERSION="0.6.2_rc.1"
HOMEPAGE="https://github.com/SuperTux/supertux"
-DOWNLOAD="https://github.com/SuperTux/supertux/releases/download/v0.6.1/SuperTux-v0.6.1-Source.tar.gz"
-MD5SUM="d7c9d70ef8501b4786908353202066e4"
+DOWNLOAD="https://github.com/SuperTux/supertux/releases/download/v0.6.2-rc.1/SuperTux-v0.6.2-rc.1-Source.tar.gz"
+MD5SUM="e4f1b5b112b729bfda801d058d09b7c0"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="SDL2_image OpenAL physfs"