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() {