summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorPieter Joost van de Sande2021-04-22 17:22:23 +0200
committerPieter Joost van de Sande2021-04-22 17:22:23 +0200
commita30d7bdb29689314daa710f0510f9a91876b5826 (patch)
tree6137fdf661abde0e491bdfa271053c1e23831369 /PKGBUILD
parent562a789d3ce1e14b5847a9d7eeff810b062db321 (diff)
downloadaur-graphql-lsp.tar.gz
fix installation
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.