From df7e60bea1d1ff5e6731d3a786c01fb1a158ad48 Mon Sep 17 00:00:00 2001 From: its-pointless Date: Tue, 6 Jun 2017 18:18:11 +1000 Subject: [PATCH] gnuit initial commit (#1062) --- packages/gnuit/build.sh | 16 ++++++++++++++++ packages/gnuit/system.c.patch | 11 +++++++++++ 2 files changed, 27 insertions(+) create mode 100644 packages/gnuit/build.sh create mode 100644 packages/gnuit/system.c.patch diff --git a/packages/gnuit/build.sh b/packages/gnuit/build.sh new file mode 100644 index 0000000000..6034a52e6f --- /dev/null +++ b/packages/gnuit/build.sh @@ -0,0 +1,16 @@ +TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/gnuit/ +TERMUX_PKG_DESCRIPTION="gnuit - GNU Interactive Tools" +TERMUX_PKG_VERSION=4.9.5 +TERMUX_PKG_SRCURL=http://ftp.gnu.org/gnu/gnuit/gnuit-4.9.5.tar.gz +TERMUX_PKG_SHA256=6b6e96db13bafa5ad35c735b2277699d4244088c709a3e134fb1a3e8c8a8557c +TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-transition" +TERMUX_PKG_DEPENDS="ncurses" +termux_step_pre_configure() { + LDFLAGS+=" -landroid-support" +} +termux_step_post_massage() { + cd $TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/share/gnuit + ln -s gnuitrc.xterm-color gnuitrc.xterm-256color + ln -s gnuitrc.screen gnuitrc.screen-color + ln -s gnuitrc.screen gnuitrc.screen-256color +} diff --git a/packages/gnuit/system.c.patch b/packages/gnuit/system.c.patch new file mode 100644 index 0000000000..0939064e6d --- /dev/null +++ b/packages/gnuit/system.c.patch @@ -0,0 +1,11 @@ +--- ../cache/gnuit-4.9.5/src/system.c 2009-02-18 02:31:26.000000000 +0000 ++++ ./src/system.c 2017-05-31 02:32:44.499460109 +0000 +@@ -162,7 +162,7 @@ + close(0); + } + +- execle("/bin/sh", "sh", "-c", command, (char *)NULL, environ); ++ execle("/data/data/com.termux/files/usr/bin/sh", "sh", "-c", command, (char *)NULL, environ); + + /* Make sure we exit if exec() fails. Call _exit() instead of + exit() to avoid flushing file descriptors twice (in the