2021-07-15 00:02:02 +02:00
|
|
|
# Description: lua language server
|
|
|
|
# URL: https://github.com/sumneko/lua-language-server
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2021-07-15 00:04:48 +02:00
|
|
|
# Depends on: lua ninja
|
2021-07-15 00:02:02 +02:00
|
|
|
|
|
|
|
name=lua-language-server
|
2022-04-11 15:51:35 +02:00
|
|
|
version=3.0.1
|
2021-07-15 00:02:02 +02:00
|
|
|
release=1
|
|
|
|
source=(https://github.com/sumneko/lua-language-server/archive/$version/$name-$version.tar.gz
|
2022-02-17 12:52:22 +01:00
|
|
|
https://github.com/sumneko/lua-language-server/releases/download/$version/lua-language-server-$version-submodules.zip
|
2021-07-15 00:02:02 +02:00
|
|
|
wrapper.sh)
|
|
|
|
|
|
|
|
build() {
|
2022-02-17 12:52:22 +01:00
|
|
|
rsync --recursive $SRC/3rd -t $SRC/$name-$version/
|
2021-07-15 00:02:02 +02:00
|
|
|
|
|
|
|
cd $name-$version
|
|
|
|
|
|
|
|
ninja -C 3rd/luamake -f compile/ninja/linux.ninja
|
|
|
|
./3rd/luamake/luamake rebuild
|
|
|
|
|
2022-01-03 11:36:10 +01:00
|
|
|
install -Dt $PKG/usr/lib/$name/bin bin/$name
|
|
|
|
install -m644 -t $PKG/usr/lib/$name/bin bin/main.lua
|
|
|
|
install -m644 -t $PKG/usr/lib/$name {debugger,main}.lua
|
|
|
|
cp -r locale meta script $PKG/usr/lib/$name
|
2021-07-15 00:02:02 +02:00
|
|
|
|
|
|
|
install -Dm0755 $SRC/wrapper.sh $PKG/usr/bin/lua-language-server
|
|
|
|
}
|