40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
# Description: A language server for Bash
|
|
# URL: https://github.com/bash-lsp/bash-language-server
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: acorn pnpm typescript
|
|
|
|
name=bash-language-server
|
|
version=5.4.0
|
|
release=1
|
|
source=(https://github.com/bash-lsp/bash-language-server/archive/server-$version/$name-$version.tar.gz)
|
|
|
|
build() {
|
|
cd $name-server-$version
|
|
|
|
pnpm install --frozen-lockfile
|
|
pnpm run compile
|
|
|
|
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/.
|
|
|
|
cd server
|
|
rm -r node_modules
|
|
npm install --production
|
|
|
|
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
|
|
|
|
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
|
|
}
|