[arch-commits] Commit in bash-language-server/repos (2 files)

Felix Yan felixonmars at archlinux.org
Wed Oct 21 15:33:04 UTC 2020


    Date: Wednesday, October 21, 2020 @ 15:33:03
  Author: felixonmars
Revision: 727865

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 727864, bash-language-server/trunk/PKGBUILD)

----------+
 PKGBUILD |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

Copied: bash-language-server/repos/community-testing-x86_64/PKGBUILD (from rev 727864, bash-language-server/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2020-10-21 15:33:03 UTC (rev 727865)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Maxim Baz <$pkgname at maximbaz dot com>
+
+pkgname=bash-language-server
+pkgver=1.17.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")
+source=("$url/archive/server-$pkgver.tar.gz")
+sha512sums=('3d16a7de09d54ca2cdd3ae6a1bd7d88e843d37e662859d85bb365d3ed90d1ad9bca17767d8c42c80f9777a799cd38744a5d3b2cf47d6491c37118f1265ce522c')
+
+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