Leonid Plyushch
5 years ago
No known key found for this signature in database
GPG Key ID: 45F2964132545795
5 changed files with
69 additions and
0 deletions
-
packages/slang/build.sh
-
packages/slang/slang-2.3.2_slsh_lib_rline_editor.sl.patch
-
packages/slang/slang-2.3.2_slsh_lib_sldbsock.sl.patch
-
packages/slang/slang-2.3.2_src_slsignal.c.patch
-
packages/slang/slang-2.3.2_src_sltermin.c.patch
|
|
@ -0,0 +1,12 @@ |
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.jedsoft.org/slang/ |
|
|
|
TERMUX_PKG_DESCRIPTION="S-Lang is a powerful interpreted language" |
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0" |
|
|
|
TERMUX_PKG_VERSION=2.3.2 |
|
|
|
TERMUX_PKG_SRCURL=https://www.jedsoft.org/releases/slang/slang-$TERMUX_PKG_VERSION.tar.bz2 |
|
|
|
TERMUX_PKG_SHA256=fc9e3b0fc4f67c3c1f6d43c90c16a5c42d117b8e28457c5b46831b8b5d3ae31a |
|
|
|
TERMUX_PKG_DEPENDS="libiconv, libpng, pcre, oniguruma, zlib" |
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true |
|
|
|
TERMUX_PKG_CONFFILES="etc/slsh.rc" |
|
|
|
|
|
|
|
# Supports only make -j1 |
|
|
|
TERMUX_MAKE_PROCESSES=1 |
|
|
@ -0,0 +1,12 @@ |
|
|
|
diff -uNr slang-2.3.2/slsh/lib/rline/editor.sl slang-2.3.2.mod/slsh/lib/rline/editor.sl
|
|
|
|
--- slang-2.3.2/slsh/lib/rline/editor.sl 2018-03-05 01:16:36.000000000 +0200
|
|
|
|
+++ slang-2.3.2.mod/slsh/lib/rline/editor.sl 2020-01-01 20:12:53.948531400 +0200
|
|
|
|
@@ -10,7 +10,7 @@
|
|
|
|
variable RLine_Tmp_Dir; |
|
|
|
private define open_tmp_file (prefix, ext) |
|
|
|
{ |
|
|
|
- variable dir, dirs = ["/tmp", "$HOME"$];
|
|
|
|
+ variable dir, dirs = ["@TERMUX_PREFIX@/tmp", "$HOME"$];
|
|
|
|
if (__is_initialized (&RLine_Tmp_Dir)) |
|
|
|
dirs = [RLine_Tmp_Dir, dirs]; |
|
|
|
|
|
|
@ -0,0 +1,12 @@ |
|
|
|
diff -uNr slang-2.3.2/slsh/lib/sldbsock.sl slang-2.3.2.mod/slsh/lib/sldbsock.sl
|
|
|
|
--- slang-2.3.2/slsh/lib/sldbsock.sl 2018-03-05 01:16:36.000000000 +0200
|
|
|
|
+++ slang-2.3.2.mod/slsh/lib/sldbsock.sl 2020-01-01 20:12:25.652335085 +0200
|
|
|
|
@@ -23,7 +23,7 @@
|
|
|
|
|
|
|
|
% Simple line-based protocol: |
|
|
|
|
|
|
|
-private variable SLDB_SOCKET_PREFIX = "/tmp/.sldb_";
|
|
|
|
+private variable SLDB_SOCKET_PREFIX = "@TERMUX_PREFIX@/tmp/.sldb_";
|
|
|
|
|
|
|
|
private variable OK_CMD_RECEIVED = 200; |
|
|
|
private variable OK_CONT_XFER = 201; |
|
|
@ -0,0 +1,12 @@ |
|
|
|
diff -uNr slang-2.3.2/src/slsignal.c slang-2.3.2.mod/src/slsignal.c
|
|
|
|
--- slang-2.3.2/src/slsignal.c 2018-03-05 01:16:36.000000000 +0200
|
|
|
|
+++ slang-2.3.2.mod/src/slsignal.c 2020-01-01 20:19:02.140129034 +0200
|
|
|
|
@@ -272,7 +272,7 @@
|
|
|
|
(void) sigprocmask (SIG_SETMASK, &save_mask, NULL); |
|
|
|
# endif |
|
|
|
|
|
|
|
- execl ("/bin/sh", "sh", "-c", cmd, (char *)NULL);
|
|
|
|
+ execl ("@TERMUX_PREFIX@/bin/sh", "sh", "-c", cmd, (char *)NULL);
|
|
|
|
_exit (127); |
|
|
|
} |
|
|
|
else |
|
|
@ -0,0 +1,21 @@ |
|
|
|
diff -uNr slang-2.3.2/src/sltermin.c slang-2.3.2.mod/src/sltermin.c
|
|
|
|
--- slang-2.3.2/src/sltermin.c 2018-03-05 01:16:36.000000000 +0200
|
|
|
|
+++ slang-2.3.2.mod/src/sltermin.c 2020-01-01 20:18:03.859706757 +0200
|
|
|
|
@@ -276,14 +276,9 @@
|
|
|
|
#ifdef MISC_TERMINFO_DIRS |
|
|
|
MISC_TERMINFO_DIRS, |
|
|
|
#endif |
|
|
|
- "/usr/local/etc/terminfo",
|
|
|
|
- "/usr/local/share/terminfo",
|
|
|
|
- "/usr/local/lib/terminfo",
|
|
|
|
- "/etc/terminfo",
|
|
|
|
- "/usr/share/terminfo",
|
|
|
|
- "/usr/lib/terminfo",
|
|
|
|
- "/usr/share/lib/terminfo",
|
|
|
|
- "/lib/terminfo",
|
|
|
|
+ "@TERMUX_PREFIX@/etc/terminfo",
|
|
|
|
+ "@TERMUX_PREFIX@/lib/terminfo",
|
|
|
|
+ "@TERMUX_PREFIX@/share/terminfo",
|
|
|
|
NULL, |
|
|
|
}; |
|
|
|
|