[arch-commits] Commit in bash-language-server/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed Apr 22 01:27:54 UTC 2020
Date: Wednesday, April 22, 2020 @ 01:27:53
Author: felixonmars
Revision: 617465
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 617464, bash-language-server/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: bash-language-server/repos/community-testing-x86_64/PKGBUILD (from rev 617464, bash-language-server/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2020-04-22 01:27:53 UTC (rev 617465)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Maxim Baz <$pkgname at maximbaz dot com>
+
+pkgname=bash-language-server
+pkgver=1.13.1
+pkgrel=2
+pkgdesc="Bash language server implementation based on Tree Sitter and its grammar for Bash"
+arch=("x86_64")
+url="https://github.com/mads-hartmann/bash-language-server"
+license=("MIT")
+depends=("nodejs" "acorn")
+makedepends=("yarn" "typescript" "git")
+source=("https://github.com/mads-hartmann/$pkgname/archive/server-$pkgver.tar.gz")
+sha512sums=('66530d0484f19162bc03fd7d0e8c1a139a60be6cb603c6931d90d5589a1ccebe17b41ab37caa8000e0573c31041595ac1845e9778034f33005c7a4541dd5ae4d')
+
+build() {
+ cd "$srcdir/$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/"* .
+
+ rm -r node_modules/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