lua-language-server: remove duplicate variables

try

try

try
This commit is contained in:
Aditya Alok 2021-10-23 15:32:53 +05:30
parent b395af50c1
commit 51ab7e0ca5
No known key found for this signature in database
GPG Key ID: 5A52117417798AC7
3 changed files with 10 additions and 37 deletions

View File

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

View File

@ -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",
+}

View File

@ -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_DESCRIPTION="Sumneko Lua Language Server coded in Lua"
TERMUX_PKG_LICENSE="MIT" TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="MrAdityaAlok <dev.aditya.alok@gmail.com>" TERMUX_PKG_MAINTAINER="MrAdityaAlok <dev.aditya.alok@gmail.com>"
TERMUX_PKG_VERSION=2.4.1 TERMUX_PKG_VERSION=2.4.5
TERMUX_PKG_REVISION=5
TERMUX_PKG_SRCURL=https://github.com/sumneko/lua-language-server.git TERMUX_PKG_SRCURL=https://github.com/sumneko/lua-language-server.git
TERMUX_PKG_GIT_BRANCH="${TERMUX_PKG_VERSION}" TERMUX_PKG_GIT_BRANCH="${TERMUX_PKG_VERSION}"
TERMUX_PKG_BUILD_DEPENDS="libandroid-spawn" TERMUX_PKG_BUILD_DEPENDS="libandroid-spawn"
@ -12,15 +11,21 @@ TERMUX_PKG_BUILD_IN_SRC=true
termux_step_host_build() { termux_step_host_build() {
termux_setup_ninja termux_setup_ninja
mkdir 3rd mkdir 3rd
cp -a $TERMUX_PKG_SRCDIR/3rd/luamake 3rd/ cp -a "${TERMUX_PKG_SRCDIR}/3rd/luamake" 3rd/
cd 3rd/luamake
cd 3rd/luamake
./compile/install.sh ./compile/install.sh
} }
termux_step_make() { termux_step_make() {
termux_setup_ninja 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() { termux_step_make_install() {