summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD9
2 files changed, 9 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 46040b9abb5..ef00f073eac 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,10 +1,11 @@
pkgbase = graphql-lsp
pkgdesc = graphql language server cli
pkgver = 3.1.3
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/graphql/graphiql
arch = x86_64
makedepends = npm
+ provides = graphql-language-service-cli
source = https://github.com/graphql/graphiql/archive/refs/tags/graphql-language-service@3.1.3.tar.gz
sha256sums = 0cdf7da4e2c161bb5a249748d4e60482453abff4d12f164d1fa3e1b6ab1172a4
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.