From 873665024ebfaa761ee49b508a79db7178aeb778 Mon Sep 17 00:00:00 2001 From: davidovski Date: Sat, 4 Jun 2022 15:08:04 +0100 Subject: added gnupg --- .../supertux/missing-include-for-FLT_EPSILON.patch | 13 +++++++++ repo/supertux/supertux.xibuild | 33 ++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 repo/supertux/missing-include-for-FLT_EPSILON.patch create mode 100644 repo/supertux/supertux.xibuild (limited to 'repo/supertux') diff --git a/repo/supertux/missing-include-for-FLT_EPSILON.patch b/repo/supertux/missing-include-for-FLT_EPSILON.patch new file mode 100644 index 0000000..44bc370 --- /dev/null +++ b/repo/supertux/missing-include-for-FLT_EPSILON.patch @@ -0,0 +1,13 @@ +diff --git a/src/supertux/game_session.cpp b/src/supertux/game_session.cpp +index 41de52e..a8ebfc9 100644 +--- a/src/supertux/game_session.cpp ++++ b/src/supertux/game_session.cpp +@@ -14,6 +14,8 @@ + // You should have received a copy of the GNU General Public License + // along with this program. If not, see . + ++#include ++ + #include "supertux/game_session.hpp" + + #include "audio/sound_manager.hpp" diff --git a/repo/supertux/supertux.xibuild b/repo/supertux/supertux.xibuild new file mode 100644 index 0000000..f45766c --- /dev/null +++ b/repo/supertux/supertux.xibuild @@ -0,0 +1,33 @@ +#!/bin/sh + +NAME="supertux" +DESC="Open-source classic 2D jump'n run sidescroller game" + +MAKEDEPS="boost cmake curl freetype2 glew libpng libvorbis openal-soft physfs sdl2 glm sdl2-image" + +PKG_VER=0.6.3 +SOURCE="https://github.com/SuperTux/supertux/releases/download/v$PKG_VER/SuperTux-v$PKG_VER-Source.tar.gz" + +ADDITIONAL=" +missing-include-for-FLT_EPSILON.patch +" + +prepare () { + apply_patches +} + +build() { + cmake -B build \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=None \ + -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ + -DCMAKE_C_FLAGS="$CFLAGS" \ + -DINSTALL_SUBDIR_BIN=bin + cmake --build build +} + +package() { + DESTDIR="$PKG_DEST" cmake --build build --target install +} -- cgit v1.2.1