49 lines
1.8 KiB
Plaintext
49 lines
1.8 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
|
|
|
|
name=lua-language-server
|
|
version=2.4.1
|
|
|
|
# https://github.com/sumneko/lua-language-server/tree/master/3rd
|
|
_bee_commit=240982c6deeb1d053cbc4b8f8ca43631fc30d3f3
|
|
_loveapi_commit=4fa1de69cb04af2e405b3ac400d4e0cec0e07530
|
|
_lpeglabel_commit=ed183860289664af0f3727307653c9bf2bccdc80
|
|
_luamake_commit=62bb7d9f01e1c22f884f9dccae4e24df813506a5
|
|
_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/love2d-community/love-api/archive/$_loveapi_commit/love-api-$_loveapi_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() {
|
|
shopt -s dotglob
|
|
for i in bee.lua-$_bee_commit love-api-$_loveapi_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
|
|
}
|