forked from ports/contrib
46 lines
1.6 KiB
Plaintext
46 lines
1.6 KiB
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 git
|
||
|
|
||
|
name=lua-language-server
|
||
|
version=2.2.3
|
||
|
|
||
|
# https://github.com/sumneko/lua-language-server/tree/master/3rd
|
||
|
_bee_commit=67fea9a9a6bde82e3d0ef1f76930db4575eb45a6
|
||
|
_lpeglabel_commit=635a51b5c88e958c27b26e049c639ea774946367
|
||
|
_luamake_commit=54c12db7954da6f0f742245ca8692c3cc4f97c32
|
||
|
_rcedit_commit=b807b34a644c86c0b0d89c7f073967e79202731a
|
||
|
|
||
|
release=1
|
||
|
source=(https://github.com/sumneko/lua-language-server/archive/$version/$name-$version.tar.gz
|
||
|
https://github.com/actboy168/bee.lua/archive/$_bee_commit/bee.lua-$_bee_commit.tar.gz
|
||
|
https://github.com/sqmedeiros/lpeglabel/archive/$_lpeglabel_commit/lpeglabel-$_lpeglabel_commit.tar.gz
|
||
|
https://github.com/actboy168/luamake/archive/$_luamake_commit/luamake-$_luamake_commit.tar.gz
|
||
|
https://github.com/electron/rcedit/archive/$_rcedit_commit/rcedit-$_rcedit_commit.tar.gz
|
||
|
wrapper.sh)
|
||
|
|
||
|
build() {
|
||
|
for i in bee.lua-$_bee_commit lpeglabel-$_lpeglabel_commit luamake-$_luamake_commit rcedit-$_rcedit_commit;
|
||
|
do rsync --recursive $i/ $name-$version/3rd/${i/-*//}/ ;
|
||
|
done
|
||
|
rsync --recursive bee.lua-$_bee_commit/ -t $name-$version/3rd/luamake/3rd/bee.lua
|
||
|
|
||
|
cd $name-$version
|
||
|
|
||
|
ninja -C 3rd/luamake -f compile/ninja/linux.ninja
|
||
|
./3rd/luamake/luamake rebuild
|
||
|
|
||
|
install -dm0755 $PKG/usr/lib/$name
|
||
|
cp -a bin/Linux/* $PKG/usr/lib/$name
|
||
|
|
||
|
install -dm0755 $PKG/usr/share/$name
|
||
|
|
||
|
cp -a \
|
||
|
main.lua platform.lua debugger.lua \
|
||
|
locale script meta \
|
||
|
$PKG/usr/share/$name
|
||
|
|
||
|
install -Dm0755 $SRC/wrapper.sh $PKG/usr/bin/lua-language-server
|
||
|
}
|