summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJohannes Wienke2017-12-05 13:37:54 +0100
committerJohannes Wienke2017-12-05 13:39:05 +0100
commit331b32b0a46d8a06d6824e07892d5747e7b0eab4 (patch)
treea538a696e773d85fa90d728867e02addf26f67be /PKGBUILD
downloadaur-331b32b0a46d8a06d6824e07892d5747e7b0eab4.tar.gz
Initial release
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD22
1 files changed, 22 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..76a5b8ad166
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Johannes Wienke <languitar@semipol.de>
+
+_npmname=vscode-css-languageserver-bin
+pkgname=vscode-css-languageserver-bin
+pkgver="1.1.0"
+pkgrel=1
+pkgdesc="Language server implementation for CSS"
+arch=('any')
+url="https://www.npmjs.com/package/vscode-css-languageserver-bin"
+license=('MIT')
+depends=('nodejs' 'npm')
+source=("https://registry.npmjs.org/${_npmname}/-/${_npmname}-${pkgver}.tgz")
+noextract=("${_npmname}-${pkgver}.tgz")
+sha1sums=('82fefb0ee051ad4ae17d8000dcc7e297ff97ccdb')
+
+package() {
+ cd "${srcdir}"
+ local _npmdir="${pkgdir}/usr/lib/node_modules/"
+ mkdir -p "${_npmdir}"
+ cd "${_npmdir}"
+ npm install --user root -g --prefix "${pkgdir}/usr" "${_npmname}@${_npmver}"
+}