new package: 1oom

This commit is contained in:
Tee KOBAYASHI 2022-04-04 13:59:56 +09:00 committed by xtkoba
parent 6a39e9564f
commit 3a14b06f33
2 changed files with 36 additions and 0 deletions

23
packages/1oom/build.sh Normal file
View File

@ -0,0 +1,23 @@
TERMUX_PKG_HOMEPAGE=https://gitlab.com/Tapani_/1oom
TERMUX_PKG_DESCRIPTION="A Master of Orion (1993) game engine recreation"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.0
TERMUX_PKG_SRCURL=https://gitlab.com/Tapani_/1oom/-/archive/v${TERMUX_PKG_VERSION}/1oom-v${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_SHA256=a4273966dde5f3296c08f903ad2e12f522b7d536919bc00e4a0a1d69d457ced0
TERMUX_PKG_DEPENDS="readline"
TERMUX_PKG_GROUPS="games"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--disable-static
--disable-uiclassic
--disable-hwsdl1
--disable-hwsdl1audio
--disable-hwsdl1gl
--disable-hwsdl2
--disable-hwsdl2audio
--disable-hwalleg4
"
termux_step_pre_configure() {
autoreconf -fi
}

View File

@ -0,0 +1,13 @@
--- a/src/os/unix/os.c
+++ b/src/os/unix/os.c
@@ -79,8 +79,8 @@
all_data_paths[i++] = util_concat(p, "/.local/share/1oom", NULL);;
}
}
- all_data_paths[i++] = lib_stralloc("/usr/share/1oom");
- all_data_paths[i++] = lib_stralloc("/usr/local/share/1oom");
+ all_data_paths[i++] = lib_stralloc("@TERMUX_PREFIX@/share/1oom");
+ all_data_paths[i++] = lib_stralloc("@TERMUX_PREFIX@/local/share/1oom");
all_data_paths[i++] = lib_stralloc(".");
all_data_paths[i] = NULL;
num_data_paths = i;