From 99b980e737b126ac2633886b175971e528efafce Mon Sep 17 00:00:00 2001 From: fervi Date: Thu, 20 Feb 2025 16:42:08 +0100 Subject: [PATCH 1/8] addpkg: supertux2 --- tur/supertux2/build.sh | 25 ++++++++++++++++++++++ tur/supertux2/supertux2-data.subpackage.sh | 6 ++++++ 2 files changed, 31 insertions(+) create mode 100644 tur/supertux2/build.sh create mode 100644 tur/supertux2/supertux2-data.subpackage.sh diff --git a/tur/supertux2/build.sh b/tur/supertux2/build.sh new file mode 100644 index 0000000000..a16e50e16b --- /dev/null +++ b/tur/supertux2/build.sh @@ -0,0 +1,25 @@ +TERMUX_PKG_HOMEPAGE=https://www.supertux.org +TERMUX_PKG_DESCRIPTION="SuperTux is a jump'n'run game with strong inspiration from the Super Mario Bros. games for the various Nintendo platforms." +TERMUX_PKG_LICENSE="GPL-3.0" +TERMUX_PKG_MAINTAINER="@termux-user-repository" +TERMUX_PKG_VERSION="0.6.3" +TERMUX_PKG_SRCURL="https://github.com/SuperTux/supertux/releases/download/v${TERMUX_PKG_VERSION}/SuperTux-v${TERMUX_PKG_VERSION}-Source.tar.gz" +TERMUX_PKG_SHA256=f7940e6009c40226eb34ebab8ffb0e3a894892d891a07b35d0e5762dd41c79f6 +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_BUILD_DEPENDS="boost-headers" +TERMUX_PKG_DEPENDS="boost, glm, sdl2, sdl2-image, sdl2-ttf, glew, openal-soft, libphysfs, supertux2-data" + +TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" +-DBoost_INCLUDE_DIR=$TERMUX_PREFIX/include +-DCMAKE_INSTALL_PREFIX=$TERMUX_PREFIX +-DIS_SUPERTUX_RELEASE=true +" + +termux_step_pre_configure() { + termux_setup_cmake +} + +termux_step_configure() { +export CMAKE_PREFIX_PATH=/data/data/com.termux/files/usr + cmake . $TERMUX_PKG_EXTRA_CONFIGURE_ARGS +} diff --git a/tur/supertux2/supertux2-data.subpackage.sh b/tur/supertux2/supertux2-data.subpackage.sh new file mode 100644 index 0000000000..ebe011e4f7 --- /dev/null +++ b/tur/supertux2/supertux2-data.subpackage.sh @@ -0,0 +1,6 @@ +TERMUX_SUBPKG_DESCRIPTION="Data files for supertux2" +TERMUX_SUBPKG_PLATFORM_INDEPENDENT=true +TERMUX_SUBPKG_DEPEND_ON_PARENT=no +TERMUX_SUBPKG_INCLUDE=" +share/games/supertux2 +" From e4a3400918bcd02f712c4786559180d1e1bfee96 Mon Sep 17 00:00:00 2001 From: fervi Date: Thu, 20 Feb 2025 16:44:34 +0100 Subject: [PATCH 2/8] Fix indentation --- tur/supertux2/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tur/supertux2/build.sh b/tur/supertux2/build.sh index a16e50e16b..09be990b08 100644 --- a/tur/supertux2/build.sh +++ b/tur/supertux2/build.sh @@ -20,6 +20,6 @@ termux_step_pre_configure() { } termux_step_configure() { -export CMAKE_PREFIX_PATH=/data/data/com.termux/files/usr + export CMAKE_PREFIX_PATH=/data/data/com.termux/files/usr cmake . $TERMUX_PKG_EXTRA_CONFIGURE_ARGS } From 998e6a921325b447f2c97d92c3511040cc696bed Mon Sep 17 00:00:00 2001 From: IntinteDAO Date: Thu, 20 Feb 2025 16:46:32 +0100 Subject: [PATCH 3/8] Fix indentation From a3cb47f701bdee1acb25c66558f462683118092c Mon Sep 17 00:00:00 2001 From: fervi Date: Thu, 20 Feb 2025 16:49:24 +0100 Subject: [PATCH 4/8] Fix indentation --- tur/supertux2/build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tur/supertux2/build.sh b/tur/supertux2/build.sh index 09be990b08..a367158505 100644 --- a/tur/supertux2/build.sh +++ b/tur/supertux2/build.sh @@ -16,10 +16,10 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" " termux_step_pre_configure() { - termux_setup_cmake + termux_setup_cmake } termux_step_configure() { - export CMAKE_PREFIX_PATH=/data/data/com.termux/files/usr - cmake . $TERMUX_PKG_EXTRA_CONFIGURE_ARGS + export CMAKE_PREFIX_PATH=/data/data/com.termux/files/usr + cmake . $TERMUX_PKG_EXTRA_CONFIGURE_ARGS } From 788ee4fa0a8d6a27a7e4dbc1235b85a91674d6ea Mon Sep 17 00:00:00 2001 From: fervi Date: Thu, 13 Mar 2025 17:54:16 +0100 Subject: [PATCH 5/8] Newpkg: Supertux --- tur/{supertux2 => supertux}/build.sh | 13 ++++++------- .../supertux-data.subpackage.sh} | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) rename tur/{supertux2 => supertux}/build.sh (76%) rename tur/{supertux2/supertux2-data.subpackage.sh => supertux/supertux-data.subpackage.sh} (69%) diff --git a/tur/supertux2/build.sh b/tur/supertux/build.sh similarity index 76% rename from tur/supertux2/build.sh rename to tur/supertux/build.sh index a367158505..5ebf475eda 100644 --- a/tur/supertux2/build.sh +++ b/tur/supertux/build.sh @@ -7,19 +7,18 @@ TERMUX_PKG_SRCURL="https://github.com/SuperTux/supertux/releases/download/v${TER TERMUX_PKG_SHA256=f7940e6009c40226eb34ebab8ffb0e3a894892d891a07b35d0e5762dd41c79f6 TERMUX_PKG_BUILD_IN_SRC=true TERMUX_PKG_BUILD_DEPENDS="boost-headers" -TERMUX_PKG_DEPENDS="boost, glm, sdl2, sdl2-image, sdl2-ttf, glew, openal-soft, libphysfs, supertux2-data" +TERMUX_PKG_DEPENDS="boost, glm, sdl2, sdl2-image, sdl2-ttf, glew, openal-soft, libphysfs, supertux-data, freetype, libandroid-execinfo" +TERMUX_PKG_FORCE_CMAKE=true +TERMUX_ON_DEVICE_BUILD=false TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" -DBoost_INCLUDE_DIR=$TERMUX_PREFIX/include -DCMAKE_INSTALL_PREFIX=$TERMUX_PREFIX -DIS_SUPERTUX_RELEASE=true +-DINSTALL_SUBDIR_BIN=bin " termux_step_pre_configure() { - termux_setup_cmake -} - -termux_step_configure() { - export CMAKE_PREFIX_PATH=/data/data/com.termux/files/usr - cmake . $TERMUX_PKG_EXTRA_CONFIGURE_ARGS + export LDFLAGS+=" -Wl,--no-as-needed,-lOpenSLES,--as-needed" + export CMAKE_PREFIX_PATH=$TERMUX_PREFIX } diff --git a/tur/supertux2/supertux2-data.subpackage.sh b/tur/supertux/supertux-data.subpackage.sh similarity index 69% rename from tur/supertux2/supertux2-data.subpackage.sh rename to tur/supertux/supertux-data.subpackage.sh index ebe011e4f7..20abc125e7 100644 --- a/tur/supertux2/supertux2-data.subpackage.sh +++ b/tur/supertux/supertux-data.subpackage.sh @@ -1,4 +1,4 @@ -TERMUX_SUBPKG_DESCRIPTION="Data files for supertux2" +TERMUX_SUBPKG_DESCRIPTION="Data files for supertux" TERMUX_SUBPKG_PLATFORM_INDEPENDENT=true TERMUX_SUBPKG_DEPEND_ON_PARENT=no TERMUX_SUBPKG_INCLUDE=" From af65b47ee1145d192b177f4f1bd5c39d0b1a106f Mon Sep 17 00:00:00 2001 From: IntinteDAO Date: Thu, 13 Mar 2025 18:07:22 +0100 Subject: [PATCH 6/8] Fix indentation From 2cfa3176ead87e4b71be12abd23ceff3028b74ef Mon Sep 17 00:00:00 2001 From: fervi Date: Thu, 13 Mar 2025 18:09:02 +0100 Subject: [PATCH 7/8] Fix Indentation --- tur/supertux/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tur/supertux/build.sh b/tur/supertux/build.sh index 5ebf475eda..6144d1727d 100644 --- a/tur/supertux/build.sh +++ b/tur/supertux/build.sh @@ -19,6 +19,6 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" " termux_step_pre_configure() { - export LDFLAGS+=" -Wl,--no-as-needed,-lOpenSLES,--as-needed" - export CMAKE_PREFIX_PATH=$TERMUX_PREFIX + export LDFLAGS+=" -Wl,--no-as-needed,-lOpenSLES,--as-needed" + export CMAKE_PREFIX_PATH=$TERMUX_PREFIX } From 27ee10a1796fdbad0ff12587c4ae26dbe52fa9cb Mon Sep 17 00:00:00 2001 From: fervi Date: Mon, 17 Mar 2025 23:01:45 +0100 Subject: [PATCH 8/8] Fix Level Editor -> Open Level Directory --- tur/supertux/0000-fix_xdg_open.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tur/supertux/0000-fix_xdg_open.patch diff --git a/tur/supertux/0000-fix_xdg_open.patch b/tur/supertux/0000-fix_xdg_open.patch new file mode 100644 index 0000000000..7c4d625e0a --- /dev/null +++ b/tur/supertux/0000-fix_xdg_open.patch @@ -0,0 +1,12 @@ +diff -ur a/src/util/file_system.cpp b/src/util/file_system.cpp +--- a/src/util/file_system.cpp 2021-12-23 00:01:58.000000000 +0100 ++++ b/src/util/file_system.cpp 2025-03-17 22:46:31.251141036 +0100 +@@ -234,7 +234,7 @@ + #if defined(__APPLE__) + std::string cmd = "open \"" + path + "\""; + #else +- std::string cmd = "xdg-open \"" + path + "\""; ++ std::string cmd = "xdg-utils-xdg-open \"" + path + "\""; + #endif + + int ret = system(cmd.c_str());