28 lines
891 B
Plaintext
28 lines
891 B
Plaintext
# Description: lua language server
|
|
# URL: https://github.com/sumneko/lua-language-server
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: lua ninja
|
|
|
|
name=lua-language-server
|
|
version=3.5.1
|
|
release=1
|
|
source=(https://github.com/sumneko/lua-language-server/archive/$version/$name-$version.tar.gz
|
|
https://github.com/sumneko/lua-language-server/releases/download/$version/lua-language-server-$version-submodules.zip
|
|
wrapper.sh)
|
|
|
|
build() {
|
|
rsync --recursive $SRC/3rd -t $SRC/$name-$version/
|
|
|
|
cd $name-$version
|
|
|
|
ninja -C 3rd/luamake -f compile/ninja/linux.ninja
|
|
./3rd/luamake/luamake rebuild
|
|
|
|
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
|
|
|
|
install -Dm0755 $SRC/wrapper.sh $PKG/usr/bin/lua-language-server
|
|
}
|