mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 00:42:58 +02:00
New package: lua-language-server-3.5.0
This commit is contained in:
parent
c103198494
commit
ca10a3af5e
3 changed files with 55 additions and 0 deletions
6
srcpkgs/lua-language-server/files/lua-language-server
Normal file
6
srcpkgs/lua-language-server/files/lua-language-server
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
STATE_PATH=${XDG_STATE_HOME:-$HOME/.local/state}/lua-language-server
|
||||||
|
|
||||||
|
exec /usr/lib/lua-language-server/bin/lua-language-server /usr/lib/lua-language-server/main.lua \
|
||||||
|
--logpath="$STATE_PATH/log" --metapath="$STATE_PATH/meta" "$@"
|
|
@ -0,0 +1,16 @@
|
||||||
|
diff --git a/make/detect_platform.lua b/make/detect_platform.lua
|
||||||
|
index 8dba298..fe8ae3e 100644
|
||||||
|
--- a/make/detect_platform.lua
|
||||||
|
+++ b/make/detect_platform.lua
|
||||||
|
@@ -22,9 +22,8 @@ elseif platform.OS == 'Windows' then
|
||||||
|
end
|
||||||
|
elseif platform.OS == 'Linux' then
|
||||||
|
if lm.platform == nil then
|
||||||
|
- elseif lm.platform == "linux-x64" then
|
||||||
|
- elseif lm.platform == "linux-arm64" then
|
||||||
|
- lm.cc = 'aarch64-linux-gnu-gcc'
|
||||||
|
+ elseif os.getenv("CC") then
|
||||||
|
+ lm.cc = os.getenv("CC")
|
||||||
|
else
|
||||||
|
error "unknown platform"
|
||||||
|
end
|
33
srcpkgs/lua-language-server/template
Normal file
33
srcpkgs/lua-language-server/template
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
# Template file for 'lua-language-server'
|
||||||
|
pkgname=lua-language-server
|
||||||
|
version=3.5.0
|
||||||
|
revision=1
|
||||||
|
create_wrksrc=yes
|
||||||
|
hostmakedepends="ninja"
|
||||||
|
short_desc="Lua LSP implementation written in Lua"
|
||||||
|
maintainer="icp <pangolin@vivaldi.net>"
|
||||||
|
license="MIT"
|
||||||
|
homepage="https://github.com/sumneko/lua-language-server"
|
||||||
|
changelog="https://raw.githubusercontent.com/sumneko/lua-language-server/master/changelog.md"
|
||||||
|
distfiles="${homepage}/releases/download/${version}/${pkgname}-${version}-submodules.zip"
|
||||||
|
checksum=b8dbbd7834fb338a36426b11f8f2cac7c995e7ccf846ac0a5a02b8c7d3b55344
|
||||||
|
|
||||||
|
do_build() {
|
||||||
|
ninja -C 3rd/luamake -f compile/ninja/linux.ninja
|
||||||
|
./3rd/luamake/luamake -platform ${XBPS_TARGET_MACHINE} rebuild
|
||||||
|
}
|
||||||
|
|
||||||
|
do_install() {
|
||||||
|
vinstall main.lua 644 usr/lib/${pkgname}
|
||||||
|
vinstall debugger.lua 644 usr/lib/${pkgname}
|
||||||
|
vinstall changelog.md 644 usr/lib/${pkgname}
|
||||||
|
vinstall bin/main.lua 644 usr/lib/${pkgname}/bin
|
||||||
|
vinstall bin/${pkgname} 755 usr/lib/${pkgname}/bin
|
||||||
|
|
||||||
|
vcopy meta usr/lib/${pkgname}
|
||||||
|
vcopy locale usr/lib/${pkgname}
|
||||||
|
vcopy script usr/lib/${pkgname}
|
||||||
|
|
||||||
|
vbin ${FILESDIR}/lua-language-server
|
||||||
|
vlicense LICENSE
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue