summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorStefan Auditor2018-02-16 13:32:40 +0100
committerStefan Auditor2018-02-16 13:32:40 +0100
commitfaa4fb0044b3eee39f9b7995b473889e9ba147d5 (patch)
tree67919874855bbe2ad9d28aed31c1d2bca13a92c2 /PKGBUILD
downloadaur-nodejs-observatory-cli.tar.gz
Initial import of upstream version 0.7.1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD25
1 files changed, 25 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3f45caf02e7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Stefan Auditor <stefan.auditor@erdfisch.de>
+
+_npmname=observatory-cli
+_npmver=0.7.1
+pkgname=nodejs-observatory-cli
+pkgver=0.7.1
+pkgrel=1
+pkgdesc="Observatory by Mozilla CLI Client"
+arch=(any)
+url="https://github.com/mozilla/observatory-cli"
+license=(MPL2)
+depends=('nodejs' )
+optdepends=()
+makedepends=('npm')
+source=(http://registry.npmjs.org/$_npmname/-/$_npmname-$_npmver.tgz)
+noextract=($_npmname-$_npmver.tgz)
+sha1sums=('fb7f1d1cee6289c57300f92d75cb9f0b30c558f3')
+
+package() {
+ cd "$srcdir"
+ local _npmdir="$pkgdir/usr/lib/node_modules/"
+ mkdir -p $_npmdir
+ cd $_npmdir
+ npm install -g --prefix "$pkgdir/usr" $_npmname@$_npmver
+}