Browse Source

gnuit initial commit (#1062)

android-5
its-pointless 8 years ago
committed by Fredrik Fornwall
parent
commit
c9dcc164dc
  1. 16
      packages/gnuit/build.sh
  2. 11
      packages/gnuit/system.c.patch

16
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
}

11
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
Loading…
Cancel
Save