From dbca306198275bdaeadacf1e2bf485059028b716 Mon Sep 17 00:00:00 2001 From: Aditya Alok Date: Sat, 16 Oct 2021 17:53:20 +0530 Subject: [PATCH 1/9] lua-language-server: update to 2.4.5 lua-language-server: fix `install_path.patch` lua-language-server: update `unittests.patch` lua-language-server: update `unittests.patch` and rename to `make.lua.patch` --- packages/lua-language-server/install_os.patch | 11 ------ .../lua-language-server/install_path.patch | 13 +++++++ packages/lua-language-server/make.lua.patch | 39 +++++++++++++++++++ packages/lua-language-server/unittests.patch | 19 --------- 4 files changed, 52 insertions(+), 30 deletions(-) delete mode 100644 packages/lua-language-server/install_os.patch create mode 100644 packages/lua-language-server/install_path.patch create mode 100644 packages/lua-language-server/make.lua.patch delete mode 100644 packages/lua-language-server/unittests.patch diff --git a/packages/lua-language-server/install_os.patch b/packages/lua-language-server/install_os.patch deleted file mode 100644 index d79366cf5..000000000 --- a/packages/lua-language-server/install_os.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- lua-language-server/make/install.lua 2021-08-09 14:36:08.073522963 +0530 -+++ lua-language-server-patch/make/install.lua 2021-08-10 10:55:34.845906577 +0530 -@@ -3,7 +3,7 @@ - local pf = require 'bee.platform' - - local CWD = fs.current_path() --local output = CWD / 'bin' / pf.OS -+local output = CWD / 'bin' / 'Android' - local bindir = CWD / builddir / 'bin' - local exe = pf.OS == 'Windows' and ".exe" or "" - local dll = pf.OS == 'Windows' and ".dll" or ".so" diff --git a/packages/lua-language-server/install_path.patch b/packages/lua-language-server/install_path.patch new file mode 100644 index 000000000..835762126 --- /dev/null +++ b/packages/lua-language-server/install_path.patch @@ -0,0 +1,13 @@ +'pf.OS' returns 'linux' but output is expected in 'android' dir + +--- lua-language-server/make/install.lua 2021-10-15 19:14:29.794791240 +0530 ++++ lua-language-server-patch/make/install.lua 2021-10-15 19:16:39.334791191 +0530 +@@ -1,7 +1,7 @@ + local fs = require 'bee.filesystem' + local pf = require 'bee.platform' + local CWD = fs.current_path() +-local output = CWD / 'bin' / pf.OS ++local output = CWD / 'bin' / 'Android' + + if pf.OS == 'Windows' then + require 'msvc'.copy_vcrt('x64', output) diff --git a/packages/lua-language-server/make.lua.patch b/packages/lua-language-server/make.lua.patch new file mode 100644 index 000000000..476837446 --- /dev/null +++ b/packages/lua-language-server/make.lua.patch @@ -0,0 +1,39 @@ +--- lua-language-server/make.lua 2021-10-16 18:04:03.750643184 +0530 ++++ lua-language-server-patch/make.lua 2021-10-16 18:24:55.260642707 +0530 +@@ -2,7 +2,7 @@ + local platform = require 'bee.platform' + local exe = platform.OS == 'Windows' and ".exe" or "" + +-lm.bindir = "bin/"..platform.OS ++lm.bindir = "bin/Android" + + lm.EXE_DIR = "" + lm.INTERNAL = "on" +@@ -40,25 +40,8 @@ + output = lm.bindir.."/main.lua", + } + +-lm:build "bee-test" { +- lm.bindir.."/lua-language-server"..exe, "3rd/bee.lua/test/test.lua", +- pool = "console", +- deps = { +- "lua-language-server", +- "copy_bootstrap" +- }, +-} +- +-lm:build 'unit-test' { +- lm.bindir.."/lua-language-server"..exe, 'test.lua', +- pool = "console", +- deps = { +- "bee-test", +- } +-} +- + lm:default { +- "bee-test", +- "unit-test", ++ "lua-language-server", ++ "copy_bootstrap", + "install", + } diff --git a/packages/lua-language-server/unittests.patch b/packages/lua-language-server/unittests.patch deleted file mode 100644 index afcb54ca1..000000000 --- a/packages/lua-language-server/unittests.patch +++ /dev/null @@ -1,19 +0,0 @@ ---- lua-language-server/make.lua 2021-10-04 00:13:48.079999941 +0530 -+++ lua-language-server-patch/make.lua 2021-10-04 00:18:30.059999834 +0530 -@@ -21,16 +21,3 @@ - 'bee', - } - } -- --local fs = require 'bee.filesystem' --local pf = require 'bee.platform' --local exe = pf.OS == 'Windows' and ".exe" or "" --lm:build 'unittest' { -- fs.path 'bin' / pf.OS / ('lua-language-server' .. exe), 'test.lua', '-E', -- pool = "console", -- deps = { -- 'install', -- } --} -- --lm:default 'unittest' From 0101394d1c8b25bae4beff7f347cfe9a28265bf4 Mon Sep 17 00:00:00 2001 From: Aditya Alok Date: Fri, 22 Oct 2021 13:14:57 +0530 Subject: [PATCH 2/9] lua-language-server: remove `install_path.patch` --- packages/lua-language-server/install_path.patch | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 packages/lua-language-server/install_path.patch diff --git a/packages/lua-language-server/install_path.patch b/packages/lua-language-server/install_path.patch deleted file mode 100644 index 835762126..000000000 --- a/packages/lua-language-server/install_path.patch +++ /dev/null @@ -1,13 +0,0 @@ -'pf.OS' returns 'linux' but output is expected in 'android' dir - ---- lua-language-server/make/install.lua 2021-10-15 19:14:29.794791240 +0530 -+++ lua-language-server-patch/make/install.lua 2021-10-15 19:16:39.334791191 +0530 -@@ -1,7 +1,7 @@ - local fs = require 'bee.filesystem' - local pf = require 'bee.platform' - local CWD = fs.current_path() --local output = CWD / 'bin' / pf.OS -+local output = CWD / 'bin' / 'Android' - - if pf.OS == 'Windows' then - require 'msvc'.copy_vcrt('x64', output) From 64f031130993f53de7bf26f014a93d8eb6e66c80 Mon Sep 17 00:00:00 2001 From: Aditya Alok Date: Fri, 22 Oct 2021 13:33:42 +0530 Subject: [PATCH 3/9] lua-language-server: update `make.lua.patch` --- packages/lua-language-server/make.lua.patch | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/packages/lua-language-server/make.lua.patch b/packages/lua-language-server/make.lua.patch index 476837446..b43b39762 100644 --- a/packages/lua-language-server/make.lua.patch +++ b/packages/lua-language-server/make.lua.patch @@ -1,5 +1,5 @@ ---- lua-language-server/make.lua 2021-10-16 18:04:03.750643184 +0530 -+++ lua-language-server-patch/make.lua 2021-10-16 18:24:55.260642707 +0530 +--- a/make.lua 2021-10-22 13:27:28.381004922 +0530 ++++ b/make.lua 2021-10-22 13:30:47.541004846 +0530 @@ -2,7 +2,7 @@ local platform = require 'bee.platform' local exe = platform.OS == 'Windows' and ".exe" or "" @@ -8,8 +8,8 @@ +lm.bindir = "bin/Android" lm.EXE_DIR = "" - lm.INTERNAL = "on" -@@ -40,25 +40,8 @@ + lm:import "3rd/bee.lua/make.lua" +@@ -42,29 +42,7 @@ output = lm.bindir.."/main.lua", } @@ -18,8 +18,13 @@ - pool = "console", - deps = { - "lua-language-server", -- "copy_bootstrap" +- "copy_bootstrap", - }, +- windows = { +- deps = { +- "copy_vcrt" +- } +- } -} - -lm:build 'unit-test' { @@ -35,5 +40,4 @@ - "unit-test", + "lua-language-server", + "copy_bootstrap", - "install", } From b395af50c1b5659f0fa6bff75e9c407b398442db Mon Sep 17 00:00:00 2001 From: Aditya Alok Date: Fri, 22 Oct 2021 15:48:49 +0530 Subject: [PATCH 4/9] lua-language-server: patch bee.lua lua-language-server: try 4 lua-language-server: add before host build patch --- .../bee.lua-project-common.patch | 22 +++++++++++++++++++ .../bee.lua-project-config.patch | 10 +++++++++ ...cripts-compiler-gcc.patch.beforehostbuild} | 0 3 files changed, 32 insertions(+) create mode 100644 packages/lua-language-server/bee.lua-project-common.patch create mode 100644 packages/lua-language-server/bee.lua-project-config.patch rename packages/lua-language-server/{static_libc++.patch => scripts-compiler-gcc.patch.beforehostbuild} (100%) diff --git a/packages/lua-language-server/bee.lua-project-common.patch b/packages/lua-language-server/bee.lua-project-common.patch new file mode 100644 index 000000000..1810dbea7 --- /dev/null +++ b/packages/lua-language-server/bee.lua-project-common.patch @@ -0,0 +1,22 @@ +--- lua-language-server/3rd/bee.lua/project/common.lua 2021-10-22 15:08:44.191055637 +0530 ++++ lua-language-server-patch/3rd/bee.lua/project/common.lua 2021-10-22 15:13:31.211055527 +0530 +@@ -10,7 +10,11 @@ + }, + linux = { + flags = "-fPIC" ++ }, ++ android = { ++ flags = "-fPIC" + } ++ + } + + lm:source_set "source_bee" { +@@ -45,6 +49,7 @@ + } + }, + android = { ++ flags ="-fPIC", + sources = { + "!bee/**_win.cpp", + "!bee/**_osx.cpp", diff --git a/packages/lua-language-server/bee.lua-project-config.patch b/packages/lua-language-server/bee.lua-project-config.patch new file mode 100644 index 000000000..776a3ef3a --- /dev/null +++ b/packages/lua-language-server/bee.lua-project-config.patch @@ -0,0 +1,10 @@ +--- lua-language-server/3rd/bee.lua/project/config.lua 2021-10-22 15:08:44.191055637 +0530 ++++ lua-language-server-patch/3rd/bee.lua/project/config.lua 2021-10-22 15:31:40.161055112 +0530 +@@ -31,3 +31,7 @@ + lm.linux = { + flags = "-fPIC", + } ++ ++lm.android= { ++ flags = "-fPIC", ++} diff --git a/packages/lua-language-server/static_libc++.patch b/packages/lua-language-server/scripts-compiler-gcc.patch.beforehostbuild similarity index 100% rename from packages/lua-language-server/static_libc++.patch rename to packages/lua-language-server/scripts-compiler-gcc.patch.beforehostbuild From 51ab7e0ca54355c49c179be5d769f4f376e21856 Mon Sep 17 00:00:00 2001 From: Aditya Alok Date: Sat, 23 Oct 2021 15:32:53 +0530 Subject: [PATCH 5/9] lua-language-server: remove duplicate variables try try try --- .../bee.lua-project-common.patch | 22 ------------------- .../bee.lua-project-config.patch | 10 --------- packages/lua-language-server/build.sh | 15 ++++++++----- 3 files changed, 10 insertions(+), 37 deletions(-) delete mode 100644 packages/lua-language-server/bee.lua-project-common.patch delete mode 100644 packages/lua-language-server/bee.lua-project-config.patch diff --git a/packages/lua-language-server/bee.lua-project-common.patch b/packages/lua-language-server/bee.lua-project-common.patch deleted file mode 100644 index 1810dbea7..000000000 --- a/packages/lua-language-server/bee.lua-project-common.patch +++ /dev/null @@ -1,22 +0,0 @@ ---- lua-language-server/3rd/bee.lua/project/common.lua 2021-10-22 15:08:44.191055637 +0530 -+++ lua-language-server-patch/3rd/bee.lua/project/common.lua 2021-10-22 15:13:31.211055527 +0530 -@@ -10,7 +10,11 @@ - }, - linux = { - flags = "-fPIC" -+ }, -+ android = { -+ flags = "-fPIC" - } -+ - } - - lm:source_set "source_bee" { -@@ -45,6 +49,7 @@ - } - }, - android = { -+ flags ="-fPIC", - sources = { - "!bee/**_win.cpp", - "!bee/**_osx.cpp", diff --git a/packages/lua-language-server/bee.lua-project-config.patch b/packages/lua-language-server/bee.lua-project-config.patch deleted file mode 100644 index 776a3ef3a..000000000 --- a/packages/lua-language-server/bee.lua-project-config.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- lua-language-server/3rd/bee.lua/project/config.lua 2021-10-22 15:08:44.191055637 +0530 -+++ lua-language-server-patch/3rd/bee.lua/project/config.lua 2021-10-22 15:31:40.161055112 +0530 -@@ -31,3 +31,7 @@ - lm.linux = { - flags = "-fPIC", - } -+ -+lm.android= { -+ flags = "-fPIC", -+} diff --git a/packages/lua-language-server/build.sh b/packages/lua-language-server/build.sh index d2bac190e..a71bdbe49 100644 --- a/packages/lua-language-server/build.sh +++ b/packages/lua-language-server/build.sh @@ -2,8 +2,7 @@ TERMUX_PKG_HOMEPAGE="https://github.com/sumneko/lua-language-server" TERMUX_PKG_DESCRIPTION="Sumneko Lua Language Server coded in Lua" TERMUX_PKG_LICENSE="MIT" TERMUX_PKG_MAINTAINER="MrAdityaAlok " -TERMUX_PKG_VERSION=2.4.1 -TERMUX_PKG_REVISION=5 +TERMUX_PKG_VERSION=2.4.5 TERMUX_PKG_SRCURL=https://github.com/sumneko/lua-language-server.git TERMUX_PKG_GIT_BRANCH="${TERMUX_PKG_VERSION}" TERMUX_PKG_BUILD_DEPENDS="libandroid-spawn" @@ -12,15 +11,21 @@ TERMUX_PKG_BUILD_IN_SRC=true termux_step_host_build() { termux_setup_ninja + mkdir 3rd - cp -a $TERMUX_PKG_SRCDIR/3rd/luamake 3rd/ - cd 3rd/luamake + cp -a "${TERMUX_PKG_SRCDIR}/3rd/luamake" 3rd/ + + cd 3rd/luamake ./compile/install.sh } termux_step_make() { termux_setup_ninja - $TERMUX_PKG_HOSTBUILD_DIR/3rd/luamake/luamake -cc "${CC}" -flags "${CFLAGS} ${CPPFLAGS}" -hostos "android" + + "${TERMUX_PKG_HOSTBUILD_DIR}/3rd/luamake/luamake" \ + -cc "${CC}" \ + -flags "${CFLAGS} ${CPPFLAGS} -L${TERMUX_PREFIX}/lib -landroid-spawn -Wno-unused-command-line-argument" \ + -hostos "android" } termux_step_make_install() { From babc96b19b7c7ca1ff5696c1221fdfaf33dd3d4d Mon Sep 17 00:00:00 2001 From: Aditya Alok Date: Mon, 25 Oct 2021 21:22:01 +0530 Subject: [PATCH 6/9] lua-language-server: update patches and clean build script lua-language-server: try lua-language-server: try --- .../bee.lua-project-common.patch | 11 ++++ packages/lua-language-server/build.sh | 51 ++++++++----------- ...scripts-compiler-gcc.patch.beforehostbuild | 12 ----- 3 files changed, 32 insertions(+), 42 deletions(-) create mode 100644 packages/lua-language-server/bee.lua-project-common.patch delete mode 100644 packages/lua-language-server/scripts-compiler-gcc.patch.beforehostbuild diff --git a/packages/lua-language-server/bee.lua-project-common.patch b/packages/lua-language-server/bee.lua-project-common.patch new file mode 100644 index 000000000..3163ee840 --- /dev/null +++ b/packages/lua-language-server/bee.lua-project-common.patch @@ -0,0 +1,11 @@ +--- lua-language-server/3rd/bee.lua/project/common.lua 2021-10-22 15:08:44.191055637 +0530 ++++ lua-language-server-patch/3rd/bee.lua/project/common.lua 2021-10-25 22:52:35.474777452 +0530 +@@ -45,6 +45,8 @@ + } + }, + android = { ++ flags ="-fPIC", ++ ldflags ="-L@TERMUX_PREFIX@/lib -landroid-spawn", + sources = { + "!bee/**_win.cpp", + "!bee/**_osx.cpp", diff --git a/packages/lua-language-server/build.sh b/packages/lua-language-server/build.sh index a71bdbe49..3413268b2 100644 --- a/packages/lua-language-server/build.sh +++ b/packages/lua-language-server/build.sh @@ -13,51 +13,42 @@ termux_step_host_build() { termux_setup_ninja mkdir 3rd - cp -a "${TERMUX_PKG_SRCDIR}/3rd/luamake" 3rd/ + cp -a "${TERMUX_PKG_SRCDIR}"/3rd/luamake 3rd/ cd 3rd/luamake + if [ "${TERMUX_ON_DEVICE_BUILD}" = true ]; then + sed -i "s/-lstdc++/-lc++_static -lc++abi -landroid-spawn/g" ./compile/ninja/android.ninja + fi ./compile/install.sh } termux_step_make() { - termux_setup_ninja - - "${TERMUX_PKG_HOSTBUILD_DIR}/3rd/luamake/luamake" \ + "${TERMUX_PKG_HOSTBUILD_DIR}"/3rd/luamake/luamake \ -cc "${CC}" \ - -flags "${CFLAGS} ${CPPFLAGS} -L${TERMUX_PREFIX}/lib -landroid-spawn -Wno-unused-command-line-argument" \ + -flags "${CFLAGS} ${CPPFLAGS}" \ -hostos "android" } termux_step_make_install() { - local INSTALL_DIR="${TERMUX_PREFIX}/lib/lua-language-server" + local INSTALL_DIR="${TERMUX_PREFIX}/lib/${TERMUX_PKG_NAME}" - cat >"lua-language-server" <<-EOF + cat >"${TERMUX_PREFIX}/bin/${TERMUX_PKG_NAME}" <<-EOF #!${TERMUX_PREFIX}/bin/bash - if [ "\$1" = "--start-lsp" ]; then - # use wrapper because lsp paths are relative - exec ${INSTALL_DIR}/lua-language-server -E ${INSTALL_DIR}/main.lua - elif [ "\$1" = "-h" ] || [ "\$1" = "--help" ]; then - echo -e "\n\e[32mTo start language server use --start-lsp\e[39m\n" - exec ${INSTALL_DIR}/lua-language-server "\$@" - else - exec ${INSTALL_DIR}/lua-language-server "\$@" - fi + TMPPATH=\$(mktemp -d "${TERMUX_PREFIX}/tmp/${TERMUX_PKG_NAME}.XXXX") + + exec ${INSTALL_DIR}/bin/Android/${TERMUX_PKG_NAME} \\ + --logpath="\${TMPPATH}/log" \\ + --metapath="\${TMPPATH}/meta" \\ + "\${@}" + EOF - install -Dm755 ./lua-language-server "${TERMUX_PREFIX}/bin" + chmod 744 "${TERMUX_PREFIX}/bin/${TERMUX_PKG_NAME}" - mkdir -p "${INSTALL_DIR}" - install -Dm755 ./bin/Android/* "${INSTALL_DIR}" - cp -r ./script ./meta ./tools ./platform.lua ./locale ./debugger.lua ./main.lua "${INSTALL_DIR}" -} - -termux_step_create_debscripts() { - cat >prerm <<-EOF - #!${TERMUX_PREFIX}/bin/bash - if [ "$TERMUX_PACKAGE_FORMAT" != "pacman" ] && [ "\$1" != "remove" ]; then exit 0; fi - - # log files created by lsp is not removed automatically - rm -rf "${TERMUX_PREFIX}/lib/lua-language-server" - EOF + install -Dm744 -t "${INSTALL_DIR}"/bin/Android ./bin/Android/"${TERMUX_PKG_NAME}" + install -Dm644 -t "${INSTALL_DIR}" ./{main,debugger}.lua + install -Dm644 -t "${INSTALL_DIR}"/bin/Android ./bin/Android/main.lua + + cp -r ./script ./meta ./locale "${INSTALL_DIR}" } diff --git a/packages/lua-language-server/scripts-compiler-gcc.patch.beforehostbuild b/packages/lua-language-server/scripts-compiler-gcc.patch.beforehostbuild deleted file mode 100644 index 6b3550dba..000000000 --- a/packages/lua-language-server/scripts-compiler-gcc.patch.beforehostbuild +++ /dev/null @@ -1,12 +0,0 @@ ---- lua-language-server/3rd/luamake/scripts/compiler/gcc.lua 2021-08-10 10:20:07.635907389 +0530 -+++ lua-language-server-patch/3rd/luamake/scripts/compiler/gcc.lua 2021-08-10 14:26:20.565901753 +0530 -@@ -64,7 +64,8 @@ - function gcc.update_ldflags(ldflags, attribute) - if globals.os == "android" then - --TODO android不支持static crt -- ldflags[#ldflags+1] = "-lstdc++" -+ ldflags[#ldflags+1] = "-lc++_static" -+ ldflags[#ldflags+1] = "-lc++abi" - elseif attribute.crt == "dynamic" then - ldflags[#ldflags+1] = "-lstdc++" - else From 5795233d33232881fbad40f8b7c53480e8012cf0 Mon Sep 17 00:00:00 2001 From: Aditya Alok Date: Mon, 25 Oct 2021 23:14:45 +0530 Subject: [PATCH 7/9] lua-language-server: finalize build --- packages/lua-language-server/build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/lua-language-server/build.sh b/packages/lua-language-server/build.sh index 3413268b2..70374f161 100644 --- a/packages/lua-language-server/build.sh +++ b/packages/lua-language-server/build.sh @@ -9,6 +9,10 @@ TERMUX_PKG_BUILD_DEPENDS="libandroid-spawn" TERMUX_PKG_HOSTBUILD=true TERMUX_PKG_BUILD_IN_SRC=true +# no cpu_relax support present for these archs. +# https://github.com/actboy168/bee.lua/blob/32f65b92739fa236d87fc1b2e7617470d47f0355/bee/thread/spinlock.h#L14 +TERMUX_PKG_BLACKLISTED_ARCHES="arm,i686" + termux_step_host_build() { termux_setup_ninja From bc8448dc113a5fb04984946d889f375b00f1861f Mon Sep 17 00:00:00 2001 From: Aditya Alok Date: Mon, 25 Oct 2021 23:29:51 +0530 Subject: [PATCH 8/9] lua-language-server: manually provide version information ELF is unable to determine its version after action of `termux-elf-cleaner` --- packages/lua-language-server/build.sh | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/packages/lua-language-server/build.sh b/packages/lua-language-server/build.sh index 70374f161..83d3e7ef8 100644 --- a/packages/lua-language-server/build.sh +++ b/packages/lua-language-server/build.sh @@ -39,12 +39,18 @@ termux_step_make_install() { cat >"${TERMUX_PREFIX}/bin/${TERMUX_PKG_NAME}" <<-EOF #!${TERMUX_PREFIX}/bin/bash - TMPPATH=\$(mktemp -d "${TERMUX_PREFIX}/tmp/${TERMUX_PKG_NAME}.XXXX") + # After action of termux-elf-cleaner lua-language-server's binary(ELF) is unable to + # determine its version, so provide it manually. + if [ "$1" = "--version" ]; then + echo "${TERMUX_PKG_NAME}: ${TERMUX_PKG_VERSION}" + else + TMPPATH=\$(mktemp -d "${TERMUX_PREFIX}/tmp/${TERMUX_PKG_NAME}.XXXX") - exec ${INSTALL_DIR}/bin/Android/${TERMUX_PKG_NAME} \\ - --logpath="\${TMPPATH}/log" \\ - --metapath="\${TMPPATH}/meta" \\ - "\${@}" + exec ${INSTALL_DIR}/bin/Android/${TERMUX_PKG_NAME} \\ + --logpath="\${TMPPATH}/log" \\ + --metapath="\${TMPPATH}/meta" \\ + "\${@}" + fi EOF From 1b9ccc79e58be88c3da22ba88702241fee729b1d Mon Sep 17 00:00:00 2001 From: Aditya Alok Date: Mon, 25 Oct 2021 23:57:59 +0530 Subject: [PATCH 9/9] lua-language-server: escape $ sign in heredoc --- packages/lua-language-server/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/lua-language-server/build.sh b/packages/lua-language-server/build.sh index 83d3e7ef8..bef611a11 100644 --- a/packages/lua-language-server/build.sh +++ b/packages/lua-language-server/build.sh @@ -41,7 +41,7 @@ termux_step_make_install() { # After action of termux-elf-cleaner lua-language-server's binary(ELF) is unable to # determine its version, so provide it manually. - if [ "$1" = "--version" ]; then + if [ "\$1" = "--version" ]; then echo "${TERMUX_PKG_NAME}: ${TERMUX_PKG_VERSION}" else TMPPATH=\$(mktemp -d "${TERMUX_PREFIX}/tmp/${TERMUX_PKG_NAME}.XXXX")