Browse Source

nano: Update from 4.2 to 4.3

emacs-27
Fredrik Fornwall 6 years ago
parent
commit
7d358ba741
  1. 4
      packages/nano/build.sh
  2. 14
      packages/nano/src-text.c.patch

4
packages/nano/build.sh

@ -1,8 +1,8 @@
TERMUX_PKG_HOMEPAGE=https://www.nano-editor.org/ TERMUX_PKG_HOMEPAGE=https://www.nano-editor.org/
TERMUX_PKG_DESCRIPTION="Small, free and friendly text editor" TERMUX_PKG_DESCRIPTION="Small, free and friendly text editor"
TERMUX_PKG_LICENSE="GPL-2.0" TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_VERSION=4.2 TERMUX_PKG_VERSION=4.3
TERMUX_PKG_SHA256=1143defce62e391b241252ffdb6e5c1ded56cfe26d46ee81b796abe0ccc45df9 TERMUX_PKG_SHA256=00d3ad1a287a85b4bf83e5f06cedd0a9f880413682bebd52b4b1e2af8cfc0d81
TERMUX_PKG_SRCURL=https://nano-editor.org/dist/latest/nano-$TERMUX_PKG_VERSION.tar.xz 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_DEPENDS="libandroid-support, libandroid-glob, ncurses"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" TERMUX_PKG_EXTRA_CONFIGURE_ARGS="

14
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 diff -u -r ../nano-4.3/src/text.c ./src/text.c
--- nano-2.9.8/src/text.c 2018-06-02 11:20:07.000000000 +0300 --- ../nano-4.3/src/text.c 2019-06-11 11:55:31.000000000 +0000
+++ nano-2.9.8.mod/src/text.c 2018-06-19 19:03:48.071389233 +0300 +++ ./src/text.c 2019-06-23 21:36:28.191047000 +0000
@@ -1147,7 +1147,7 @@ @@ -956,7 +956,7 @@
/* Check which shell to use. If none is specified, use /bin/sh. */ /* Check which shell to use. If none is specified, use /bin/sh. */
shellenv = getenv("SHELL"); shellenv = getenv("SHELL");
if (shellenv == NULL) if (shellenv == NULL)
- shellenv = (char *) "/bin/sh"; - shellenv = (char *)"/bin/sh";
+ shellenv = (char *) "@TERMUX_PREFIX@/bin/sh"; + shellenv = (char *)"@TERMUX_PREFIX@/bin/sh";
/* Fork a child process to run the command in. */ /* Fork a child process to run the command in. */
if ((pid = fork()) == 0) { if ((pid_of_command = fork()) == 0) {

Loading…
Cancel
Save