[arch-commits] Commit in bash-language-server/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Wed Oct 20 22:08:26 UTC 2021
Date: Wednesday, October 20, 2021 @ 22:08:26
Author: felixonmars
Revision: 1031482
archrelease: copy trunk to community-testing-x86_64
Added:
bash-language-server/repos/community-testing-x86_64/
bash-language-server/repos/community-testing-x86_64/PKGBUILD
(from rev 1031481, bash-language-server/trunk/PKGBUILD)
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Copied: bash-language-server/repos/community-testing-x86_64/PKGBUILD (from rev 1031481, bash-language-server/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2021-10-20 22:08:26 UTC (rev 1031482)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Maxim Baz <$pkgname at maximbaz dot com>
+
+pkgname=bash-language-server
+pkgver=2.0.0
+pkgrel=3
+pkgdesc="Bash language server implementation based on Tree Sitter and its grammar for Bash"
+arch=("x86_64")
+url="https://github.com/bash-lsp/$pkgname"
+license=("MIT")
+depends=("nodejs" "acorn")
+makedepends=("yarn" "typescript" "git")
+optdepends=('bash-completion: for CLI args completion')
+source=("$url/archive/server-$pkgver.tar.gz")
+sha512sums=('e72df6f13ed4b861b81329059d41cdfada2729e9523e619ef26d6ed0a2a5400a3dda659b4f4af923a2a9fb2054b99b9d6db082508f2ba06ac0f9a421516e2ce9')
+
+build() {
+ cd "$pkgname-server-$pkgver"
+ yarn
+ yarn run compile
+}
+
+package() {
+ install -d "$pkgdir/usr/lib/$pkgname"
+ cd "$pkgdir/usr/lib/$pkgname"
+ cp -a "$srcdir/$pkgname-server-$pkgver/server/"* .
+ install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" "$srcdir/$pkgname-server-$pkgver/LICENSE"
+
+ rm -r node_modules/acorn
+ mkdir -p node_modules/acorn/bin
+ ln -s /usr/bin/acorn node_modules/acorn/bin/acorn
+
+ install -d "$pkgdir/usr/bin"
+ ln -s "/usr/lib/$pkgname/bin/main.js" "$pkgdir/usr/bin/$pkgname"
+}
More information about the arch-commits
mailing list