diff --git a/packages/nano/build.sh b/packages/nano/build.sh index 0b3e68be0..c78c65ecb 100644 --- a/packages/nano/build.sh +++ b/packages/nano/build.sh @@ -1,8 +1,8 @@ TERMUX_PKG_HOMEPAGE=https://www.nano-editor.org/ TERMUX_PKG_DESCRIPTION="Small, free and friendly text editor" TERMUX_PKG_LICENSE="GPL-2.0" -TERMUX_PKG_VERSION=4.2 -TERMUX_PKG_SHA256=1143defce62e391b241252ffdb6e5c1ded56cfe26d46ee81b796abe0ccc45df9 +TERMUX_PKG_VERSION=4.3 +TERMUX_PKG_SHA256=00d3ad1a287a85b4bf83e5f06cedd0a9f880413682bebd52b4b1e2af8cfc0d81 TERMUX_PKG_SRCURL=https://nano-editor.org/dist/latest/nano-$TERMUX_PKG_VERSION.tar.xz TERMUX_PKG_DEPENDS="libandroid-support, libandroid-glob, ncurses" TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" diff --git a/packages/nano/src-text.c.patch b/packages/nano/src-text.c.patch index 54d606688..a0da8d1f1 100644 --- a/packages/nano/src-text.c.patch +++ b/packages/nano/src-text.c.patch @@ -1,12 +1,12 @@ -diff -uNr nano-2.9.8/src/text.c nano-2.9.8.mod/src/text.c ---- nano-2.9.8/src/text.c 2018-06-02 11:20:07.000000000 +0300 -+++ nano-2.9.8.mod/src/text.c 2018-06-19 19:03:48.071389233 +0300 -@@ -1147,7 +1147,7 @@ +diff -u -r ../nano-4.3/src/text.c ./src/text.c +--- ../nano-4.3/src/text.c 2019-06-11 11:55:31.000000000 +0000 ++++ ./src/text.c 2019-06-23 21:36:28.191047000 +0000 +@@ -956,7 +956,7 @@ /* Check which shell to use. If none is specified, use /bin/sh. */ shellenv = getenv("SHELL"); if (shellenv == NULL) -- shellenv = (char *) "/bin/sh"; -+ shellenv = (char *) "@TERMUX_PREFIX@/bin/sh"; +- shellenv = (char *)"/bin/sh"; ++ shellenv = (char *)"@TERMUX_PREFIX@/bin/sh"; /* Fork a child process to run the command in. */ - if ((pid = fork()) == 0) { + if ((pid_of_command = fork()) == 0) {