blob: a940ee24e052b304887c1ccfde6eae218a70d47e (
plain)
1 # Description: A language server for Bash
2 # URL: https://github.com/bash-lsp/bash-language-server
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: acorn typescript yarn
5
6 name=bash-language-server
7 version=4.4.0
8 release=1
9 source=(https://github.com/bash-lsp/bash-language-server/archive/server-$version/$name-$version.tar.gz)
10
11 build() {
12 cd $name-server-$version
13 yarn
14 yarn run compile
15
16 install -d $PKG/usr/lib/$name
17 cp -a server/* $PKG/usr/lib/$name
18 install -d $PKG/usr/bin
19 ln -s /usr/lib/$name/bin/main.js $PKG/usr/bin/$name
20
21 find $PKG \(\
22 -iname "*README.md*" -o \
23 -iname "*README.markdown*" -o \
24 -iname "*CHANGELOG.md*" -o \
25 -iname "*AUTHORS*" -o \
26 -iname "*ChangeLog*" -o \
27 -iname "*README_js.md*" -o \
28 -iname "*COPYING*" -o \
29 -iname "*LICENSE*" \) -delete
30 }
|