gnuit initial commit (#1062)
authorits-pointless <its-pointless@users.noreply.github.com>
Tue, 6 Jun 2017 08:18:11 +0000 (18:18 +1000)
committerFredrik Fornwall <fredrik@fornwall.net>
Tue, 6 Jun 2017 08:18:11 +0000 (10:18 +0200)
packages/gnuit/build.sh [new file with mode: 0644]
packages/gnuit/system.c.patch [new file with mode: 0644]

diff --git a/packages/gnuit/build.sh b/packages/gnuit/build.sh
new file mode 100644 (file)
index 0000000..6034a52
--- /dev/null
@@ -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 (file)
index 0000000..0939064
--- /dev/null
@@ -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