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-02-13 10:31:23 +01:00
|
|
|
version=2.6.4
|
2021-07-15 00:02:02 +02:00
|
|
|
|
|
|
|
# https://github.com/sumneko/lua-language-server/tree/master/3rd
|
2022-02-17 09:31:57 +01:00
|
|
|
_bee_commit=226b4f55938dff7e3424437aac77e1b0932d98c2
|
2022-02-12 16:28:03 +01:00
|
|
|
_loveapi_commit=6532c3890915ceb265afc64a33ca1b838a28acbe
|
2021-10-04 23:57:54 +02:00
|
|
|
_lpeglabel_commit=ed183860289664af0f3727307653c9bf2bccdc80
|
2022-02-12 16:28:03 +01:00
|
|
|
_luamake_commit=843262572a2765ebe187573e32c4f8f22952c2c0
|
2021-07-15 00:02:02 +02:00
|
|
|
_rcedit_commit=b807b34a644c86c0b0d89c7f073967e79202731a
|
2021-11-15 21:37:31 +01:00
|
|
|
# https://github.com/actboy168/luamake/tree/$_luamake_commit/3rd
|
2022-02-12 16:28:03 +01:00
|
|
|
_bee2_commit=6d50b51196f13ba9acc1cb2aa5a17ddb96519094
|
2021-07-15 00:02:02 +02:00
|
|
|
|
|
|
|
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
|
2021-10-27 11:15:56 +02:00
|
|
|
https://github.com/actboy168/bee.lua/archive/$_bee2_commit/bee.lua-$_bee2_commit.tar.gz
|
2021-07-20 12:54:24 +02:00
|
|
|
https://github.com/love2d-community/love-api/archive/$_loveapi_commit/love-api-$_loveapi_commit.tar.gz
|
2021-07-15 00:02:02 +02:00
|
|
|
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() {
|
2021-10-04 23:57:54 +02:00
|
|
|
shopt -s dotglob
|
2022-02-12 16:28:03 +01:00
|
|
|
for i in bee.lua-$_bee_commit love-api-$_loveapi_commit lpeglabel-$_lpeglabel_commit luamake-$_luamake_commit rcedit-$_rcedit_commit;
|
2021-10-04 23:57:54 +02:00
|
|
|
do rsync --recursive $i/ $name-$version/3rd/${i/-*/}/ ;
|
2021-07-15 00:02:02 +02:00
|
|
|
done
|
2021-10-27 11:15:56 +02:00
|
|
|
#rsync --recursive bee.lua-$_bee_commit/ -t $name-$version/3rd/luamake/3rd/bee.lua
|
|
|
|
rsync --recursive bee.lua-$_bee2_commit/ -t $name-$version/3rd/luamake/3rd/bee.lua
|
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
|
|
|
|
}
|