summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPieter Joost van de Sande2021-04-22 16:13:08 +0200
committerPieter Joost van de Sande2021-04-22 16:13:08 +0200
commit562a789d3ce1e14b5847a9d7eeff810b062db321 (patch)
tree175e2f352ee56a7f304dd4df2a35ef4caddf4a7e
downloadaur-562a789d3ce1e14b5847a9d7eeff810b062db321.tar.gz
initial commit
-rw-r--r--.SRCINFO12
-rw-r--r--PKGBUILD21
2 files changed, 33 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..46040b9abb5
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,12 @@
+pkgbase = graphql-lsp
+ pkgdesc = graphql language server cli
+ pkgver = 3.1.3
+ pkgrel = 1
+ url = https://github.com/graphql/graphiql
+ arch = x86_64
+ makedepends = npm
+ source = https://github.com/graphql/graphiql/archive/refs/tags/graphql-language-service@3.1.3.tar.gz
+ sha256sums = 0cdf7da4e2c161bb5a249748d4e60482453abff4d12f164d1fa3e1b6ab1172a4
+
+pkgname = graphql-lsp
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e3438c3e56d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,21 @@
+pkgname=graphql-lsp
+pkgver=3.1.3
+pkgrel=1
+pkgdesc='graphql language server cli'
+arch=('x86_64')
+url="https://github.com/graphql/graphiql"
+makedepends=('npm')
+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"
+
+ # Non-deterministic race in npm gives 777 permissions to random directories.
+ # See https://github.com/npm/cli/issues/1103 for details.
+ find "${pkgdir}/usr" -type d -exec chmod 755 {} +
+
+ # npm gives ownership of ALL FILES to build user
+ # https://bugs.archlinux.org/task/63396
+ chown -R root:root "${pkgdir}"
+}