summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD9
1 files changed, 7 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index e3438c3e56d..0b8250dc2bb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,7 @@
pkgname=graphql-lsp
+provides=('graphql-language-service-cli')
pkgver=3.1.3
-pkgrel=1
+pkgrel=2
pkgdesc='graphql language server cli'
arch=('x86_64')
url="https://github.com/graphql/graphiql"
@@ -9,7 +10,11 @@ source=("$url/archive/refs/tags/graphql-language-service@$pkgver.tar.gz")
sha256sums=('0cdf7da4e2c161bb5a249748d4e60482453abff4d12f164d1fa3e1b6ab1172a4')
package() {
- npm install -g --prefix "${pkgdir}/usr" "${srcdir}/graphiql-graphql-language-service-${pkgver}/packages/graphql-language-service-cli"
+ package=$(npm pack "${srcdir}/graphiql-graphql-language-service-${pkgver}/packages/graphql-language-service-cli")
+ npm install -g --prefix "${pkgdir}/usr" "$package"
+
+# tar -zcvf "graphql-language-service-cli-$pkgver.tar.gz" .
+# npm install -g --prefix "${pkgdir}/usr" "graphql-language-service-cli-$pkgver.tar.gz"
# Non-deterministic race in npm gives 777 permissions to random directories.
# See https://github.com/npm/cli/issues/1103 for details.