From 82e412da53bb63aaee20e6bd5886d84bb8d70e10 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Thu, 18 Nov 2021 21:33:53 +0300 Subject: [PATCH] Add npush: curses-based logic game similar to Sokoban and Boulder Dash --- packages/npush/build.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 packages/npush/build.sh diff --git a/packages/npush/build.sh b/packages/npush/build.sh new file mode 100644 index 000000000..a6520c221 --- /dev/null +++ b/packages/npush/build.sh @@ -0,0 +1,22 @@ +TERMUX_PKG_HOMEPAGE=http://npush.sourceforge.net/ +TERMUX_PKG_DESCRIPTION="Curses-based logic game similar to Sokoban and Boulder Dash" +TERMUX_PKG_LICENSE="GPL-2.0" +TERMUX_PKG_MAINTAINER="Dmitry Marakasov " +TERMUX_PKG_VERSION=0.7 +TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/project/npush/npush/${TERMUX_PKG_VERSION}/npush-${TERMUX_PKG_VERSION}.tgz +TERMUX_PKG_SHA256=f216d2b3279e8737784f77d4843c9e6f223fa131ce1ebddaf00ad802aba2bcd9 +TERMUX_PKG_DEPENDS="ncurses" +TERMUX_PKG_BUILD_IN_SRC=true + +termux_step_post_get_source() { + sed -i -e "s|\"levels|\"${TERMUX_PREFIX}/share/npush/levels|" npush.cpp +} + +termux_step_make() { + $CXX $CXXFLAGS $CPPFLAGS $LDFLAGS -lncurses -o npush npush.cpp +} + +termux_step_make_install() { + install -Dm755 -t $TERMUX_PREFIX/bin/ npush + install -Dm644 -t $TERMUX_PREFIX/share/npush/levels levels/* +}