Browse Source

new package: slang

build-on-device
Leonid Plyushch 5 years ago
parent
commit
f00a6ad9f0
No known key found for this signature in database GPG Key ID: 45F2964132545795
  1. 12
      packages/slang/build.sh
  2. 12
      packages/slang/slang-2.3.2_slsh_lib_rline_editor.sl.patch
  3. 12
      packages/slang/slang-2.3.2_slsh_lib_sldbsock.sl.patch
  4. 12
      packages/slang/slang-2.3.2_src_slsignal.c.patch
  5. 21
      packages/slang/slang-2.3.2_src_sltermin.c.patch

12
packages/slang/build.sh

@ -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

12
packages/slang/slang-2.3.2_slsh_lib_rline_editor.sl.patch

@ -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];

12
packages/slang/slang-2.3.2_slsh_lib_sldbsock.sl.patch

@ -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;

12
packages/slang/slang-2.3.2_src_slsignal.c.patch

@ -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

21
packages/slang/slang-2.3.2_src_sltermin.c.patch

@ -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,
};
Loading…
Cancel
Save