blob: abeb824be7041384af3732681749318ce1e00fab (
plain)
1 # Description: lua language server
2 # URL: https://github.com/sumneko/lua-language-server
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: lua ninja
5
6 name=lua-language-server
7 version=3.6.4
8 release=1
9 source=(https://github.com/sumneko/lua-language-server/archive/$version/$name-$version.tar.gz
10 https://github.com/sumneko/lua-language-server/releases/download/$version/lua-language-server-$version-submodules.zip
11 wrapper.sh)
12
13 build() {
14 rsync --recursive $SRC/3rd -t $SRC/$name-$version/
15
16 cd $name-$version
17
18 ninja -C 3rd/luamake -f compile/ninja/linux.ninja
19 ./3rd/luamake/luamake rebuild
20
21 install -Dt $PKG/usr/lib/$name/bin bin/$name
22 install -m644 -t $PKG/usr/lib/$name/bin bin/main.lua
23 install -m644 -t $PKG/usr/lib/$name {debugger,main}.lua
24 cp -r locale meta script $PKG/usr/lib/$name
25
26 install -Dm0755 $SRC/wrapper.sh $PKG/usr/bin/lua-language-server
27 }
|