Package Details: diagnostic-languageserver 1.14.2-1

Git Clone URL: https://aur.archlinux.org/diagnostic-languageserver.git (read-only, click to copy)
Package Base: diagnostic-languageserver
Description: General purpose Language Server that integrates with linters to support diagnostic features
Upstream URL: https://www.npmjs.com/package/diagnostic-languageserver
Licenses: MIT
Submitter: m-pilia
Maintainer: m-pilia
Last Packager: m-pilia
Votes: 3
Popularity: 0.000001
First Submitted: 2019-07-20 12:07 (UTC)
Last Updated: 2022-05-08 10:36 (UTC)

Latest Comments

lmartinez-mirror commented on 2021-06-22 00:41 (UTC)

Wrote up a patch for this PKGBUILD since NPM no longer acknowledges --user root.

diff --git a/PKGBUILD b/PKGBUILD
index a1a0a68..7833892 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,8 @@
 # Maintainer of this PKGBUILD file: Martino Pilia <martino.pilia@gmail.com>
+# Contributor : Luis Martinez <luis dot martinez at tuta dot io>
+
 pkgname=diagnostic-languageserver
-pkgver=1.4.2
+pkgver=1.11.0
 pkgrel=1
 pkgdesc="General purpose Language Server that integrates with linters to support diagnostic features"
 arch=('any')
@@ -9,19 +11,13 @@ license=('MIT')
 depends=('nodejs')
 makedepends=('npm')
 source=("https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz")
-sha256sums=('da1d428c831d59648e447d24838bfea76f3eda8cc867aa87b569aafe4ef47efe')
+noextract=("$pkgname-$pkgver.tgz")
+sha256sums=('9680a428589cd8d23fe799abe2402e0b697ddf1214da36c3d443a12ff62b32a2')

 package() {
-   npm install -g \
-       --user root \
-       --prefix "$pkgdir"/usr \
-       "$srcdir"/$pkgname-$pkgver.tgz
-
-   # Non-deterministic race in npm gives 777 permissions to random directories.
-   # See https://github.com/npm/npm/issues/9359 for details.
-   find "${pkgdir}"/usr -type d -exec chmod 755 {} +
-
-   install -D -m644 \
-       "${srcdir}/package/LICENSE" \
-       "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+   npm install -g --cache "$srcdir/npm-cache" --prefix "$pkgdir/usr" "$pkgname-$pkgver.tgz"
+   find "$pkgdir/usr" -type d -exec chmod 755 {} +
+   chown -R root:root "$pkgdir/"
+   install -Dm 644 "$pkgdir/usr/lib/node_modules/$pkgname/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname/"
+   install -Dm 644 "$pkgdir/usr/lib/node_modules/$pkgname/README.md" -t "$pkgdir/usr/share/doc/$pkgname/"
 }