summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/nodejs-grunt-cli/PKGBUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/pcr/nodejs-grunt-cli/PKGBUILD b/pcr/nodejs-grunt-cli/PKGBUILD
new file mode 100644
index 000000000..1ef6cb8e7
--- /dev/null
+++ b/pcr/nodejs-grunt-cli/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Luke R. <g4jc@openmailbox.org> GPG: rsa4096/3EAE8697
+# Maintainer (Arch): Mario Finelli <mario dot finelli at yahoo dot com>
+# Contributor (Arch): Andy Weidenbaum <archbaum at gmail dot com>
+# Contributor (Arch): Peter Wu <lekensteyn at gmail dot com>
+
+_npmname=grunt-cli
+pkgname=nodejs-$_npmname
+pkgver=0.1.13
+pkgrel=6
+pkgdesc="The grunt command line interface."
+arch=('any')
+url="http://gruntjs.com/"
+license=('MIT')
+depends=('nodejs' 'npm')
+source=(https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz)
+noextract=($_npmname-$pkgver.tgz)
+sha256sums=('e639404d7b66ae2821edabc681104a1f035910ff20a2e21d67329c2a7674a443')
+
+package() {
+ cd "$srcdir"
+ local _npmdir="$pkgdir/usr/lib/node_modules/"
+ mkdir -p "$_npmdir"
+ cd "$_npmdir"
+ npm install --user root -g --prefix "$pkgdir/usr" $_npmname@$pkgver
+
+ rmdir "$pkgdir"/usr/etc
+} \ No newline at end of file