Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New package: lua-language-server-3.4.0
- Loading branch information
Showing
3 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" "$@" |
16 changes: 16 additions & 0 deletions
16
srcpkgs/lua-language-server/patches/enable-cross-compilation.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Template file for 'lua-language-server' | ||
pkgname=lua-language-server | ||
version=3.4.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://github.com/sumneko/lua-language-server/blob/master/changelog.md" | ||
distfiles="${homepage}/releases/download/${version}/${pkgname}-${version}-submodules.zip" | ||
checksum=d32a5c96169cd93b60a2d6dd079904f436eac2d5ba698d55a0f74d4c0c670f3e | ||
|
||
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 | ||
} |