2021-07-02 22:28:22 +00:00
|
|
|
# Description: A language server for Bash
|
|
|
|
# URL: https://github.com/bash-lsp/bash-language-server
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2023-07-21 23:10:31 +02:00
|
|
|
# Depends on: acorn pnpm typescript
|
2021-07-02 22:28:22 +00:00
|
|
|
|
|
|
|
name=bash-language-server
|
2024-01-13 00:04:00 +01:00
|
|
|
version=5.1.2
|
2023-12-27 19:32:35 +01:00
|
|
|
release=1
|
2021-07-02 22:28:22 +00:00
|
|
|
source=(https://github.com/bash-lsp/bash-language-server/archive/server-$version/$name-$version.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-server-$version
|
2023-06-11 22:32:43 +02:00
|
|
|
|
2023-07-21 23:10:31 +02:00
|
|
|
pnpm install --frozen-lockfile
|
|
|
|
pnpm run compile
|
|
|
|
|
2023-09-12 23:06:10 +02:00
|
|
|
install -d $PKG/usr/bin $PKG/usr/lib/node_modules/$name
|
|
|
|
#cp -a $SRC/$name-server-$version/server/* $PKG/usr/lib/$name/.
|
|
|
|
#cp -a $SRC/$name-server-$version/server/cli.js $PKG/usr/lib/$name/.
|
2021-07-02 22:28:22 +00:00
|
|
|
|
2023-09-12 23:06:10 +02:00
|
|
|
cd server
|
|
|
|
rm -r node_modules
|
|
|
|
npm install --production
|
2023-07-29 23:03:04 +02:00
|
|
|
|
2023-09-12 23:06:10 +02:00
|
|
|
cp -r node_modules out package.json tree-sitter-bash.wasm $PKG/usr/lib/node_modules/$name/
|
|
|
|
|
|
|
|
chmod +x $PKG/usr/lib/node_modules/$name/out/cli.js
|
|
|
|
ln -s /usr/lib/node_modules/$name/out/cli.js $PKG/usr/bin/$name
|
2021-07-02 22:28:22 +00:00
|
|
|
|
|
|
|
find $PKG \(\
|
|
|
|
-iname "*README.md*" -o \
|
|
|
|
-iname "*README.markdown*" -o \
|
|
|
|
-iname "*CHANGELOG.md*" -o \
|
|
|
|
-iname "*AUTHORS*" -o \
|
|
|
|
-iname "*ChangeLog*" -o \
|
|
|
|
-iname "*README_js.md*" -o \
|
|
|
|
-iname "*COPYING*" -o \
|
|
|
|
-iname "*LICENSE*" \) -delete
|
|
|
|
}
|