[arch-commits] Commit in bash-language-server/trunk (PKGBUILD)
Maxim Baz
maximbaz at archlinux.org
Thu Aug 27 21:00:30 UTC 2020
Date: Thursday, August 27, 2020 @ 21:00:30
Author: maximbaz
Revision: 690004
bash-language-server: fix broken symlinks, add LICENSE; FS#67723
Modified:
bash-language-server/trunk/PKGBUILD
----------+
PKGBUILD | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-08-27 20:59:04 UTC (rev 690003)
+++ PKGBUILD 2020-08-27 21:00:30 UTC (rev 690004)
@@ -3,18 +3,18 @@
pkgname=bash-language-server
pkgver=1.17.0
-pkgrel=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"
+url="https://github.com/bash-lsp/$pkgname"
license=("MIT")
depends=("nodejs" "acorn")
makedepends=("yarn" "typescript" "git")
-source=("https://github.com/mads-hartmann/$pkgname/archive/server-$pkgver.tar.gz")
+source=("$url/archive/server-$pkgver.tar.gz")
sha512sums=('3d16a7de09d54ca2cdd3ae6a1bd7d88e843d37e662859d85bb365d3ed90d1ad9bca17767d8c42c80f9777a799cd38744a5d3b2cf47d6491c37118f1265ce522c')
build() {
- cd "$srcdir/$pkgname-server-$pkgver"
+ cd "$pkgname-server-$pkgver"
yarn
yarn run compile
}
@@ -23,8 +23,11 @@
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