summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
Diffstat (limited to 'pcr')
-rw-r--r--pcr/nodejs-grunt-cli/PKGBUILD24
1 files changed, 24 insertions, 0 deletions
diff --git a/pcr/nodejs-grunt-cli/PKGBUILD b/pcr/nodejs-grunt-cli/PKGBUILD
new file mode 100644
index 000000000..8ca0704b9
--- /dev/null
+++ b/pcr/nodejs-grunt-cli/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer (Arch): Mario Finelli <mtfinelli at gmail 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=3
+pkgdesc="The grunt command line interface"
+arch=('any')
+url="http://gruntjs.com/"
+license=('MIT')
+depends=('nodejs')
+source=(https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz)
+noextract=($_npmname-$pkgver.tgz)
+md5sums=('fe47325c8b6f48d752c33c9ea57d9217')
+
+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
+}