Merge pull request #7351 from MrAdityaAlok/sumneko-lua-lsp
lua-language-server: build from tag
This commit is contained in:
commit
d8e8311fab
@ -1,12 +0,0 @@
|
||||
--- lua-language-server/3rd/bee.lua/make.lua 2021-08-10 10:20:06.735907389 +0530
|
||||
+++ lua-language-server-patch/3rd/bee.lua/make.lua 2021-08-10 19:24:38.931999705 +0530
|
||||
@@ -23,9 +23,3 @@
|
||||
output = "$bin/main.lua",
|
||||
deps = "bootstrap",
|
||||
}
|
||||
-
|
||||
-lm:build "test" {
|
||||
- "$bin/bootstrap"..exe, "@test/test.lua",
|
||||
- deps = { "bootstrap", "copy_script", "bee" },
|
||||
- pool = "console"
|
||||
-}
|
@ -2,13 +2,12 @@ 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 <dev.aditya.alok@gmail.com>"
|
||||
TERMUX_PKG_VERSION=2.3.4
|
||||
TERMUX_PKG_VERSION=2.4.1
|
||||
TERMUX_PKG_SRCURL=https://github.com/sumneko/lua-language-server.git
|
||||
TERMUX_PKG_GIT_BRANCH="master"
|
||||
TERMUX_PKG_GIT_BRANCH="${TERMUX_PKG_VERSION}"
|
||||
TERMUX_PKG_BUILD_DEPENDS="libandroid-spawn"
|
||||
TERMUX_PKG_HOSTBUILD=true
|
||||
|
||||
|
||||
termux_step_host_build() {
|
||||
termux_setup_ninja
|
||||
|
||||
@ -26,7 +25,7 @@ termux_step_make_install() {
|
||||
|
||||
local INSTALL_DIR="${TERMUX_PREFIX}/lib/lua-language-server"
|
||||
|
||||
cat > "lua-language-server" <<- EOF
|
||||
cat >"lua-language-server" <<-EOF
|
||||
#!${TERMUX_PREFIX}/bin/bash
|
||||
|
||||
if [ "\$1" = "--start-lsp" ]; then
|
||||
@ -48,11 +47,11 @@ termux_step_make_install() {
|
||||
}
|
||||
|
||||
termux_step_create_debscripts() {
|
||||
cat > prerm <<- EOF
|
||||
cat >prerm <<-EOF
|
||||
#!${TERMUX_PREFIX}/bin/bash
|
||||
if [ "$TERMUX_PACKAGE_FORMAT" != "pacman" ] && [ "\$1" != "remove" ]; then exit 0; fi
|
||||
|
||||
# since lsp creates log file, therefore not removed automatically
|
||||
# log files created by lsp is not removed automatically
|
||||
rm -rf "${TERMUX_PREFIX}/lib/lua-language-server"
|
||||
EOF
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
--- lua-language-server/make.lua 2021-08-10 10:19:09.365907411 +0530
|
||||
+++ lua-language-server-patch/make.lua 2021-08-10 19:21:14.691999783 +0530
|
||||
@@ -22,17 +22,3 @@
|
||||
'bootstrap',
|
||||
--- 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',
|
||||
}
|
||||
}
|
||||
-
|
||||
@ -13,7 +13,6 @@
|
||||
- pool = "console",
|
||||
- deps = {
|
||||
- 'install',
|
||||
- 'test',
|
||||
- }
|
||||
-}
|
||||
-
|
Loading…
Reference in New Issue
Block a user