[arch-commits] Commit in bash-language-server/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Sep 13 18:34:37 UTC 2018
Date: Thursday, September 13, 2018 @ 18:34:37
Author: felixonmars
Revision: 380480
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 380479, bash-language-server/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: bash-language-server/repos/community-testing-x86_64/PKGBUILD (from rev 380479, bash-language-server/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2018-09-13 18:34:37 UTC (rev 380480)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Maintainer: Maxim Baz <$pkgname at maximbaz dot com>
+
+pkgname=bash-language-server
+pkgver=1.5.1
+pkgrel=1
+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" "python2")
+source=("https://github.com/mads-hartmann/$pkgname/archive/server-$pkgver.tar.gz")
+sha256sums=('c7bcd95ca6703483829e2f0ceb87c4a876ceb06a2a4ba11e0acd8a47295856dc')
+
+build() {
+ cd "$srcdir/$pkgname-server-$pkgver"
+ yarn
+ cd server
+ 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