summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-05-06 04:30:55 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-05-06 04:30:55 -0300
commit5478158b39c147bec163842a010f88013b1c0547 (patch)
treed7222f10786b3ceede8fa550c8610e635a537fb8
parent4b021779bb06417f16a481f51010b6aa813f0935 (diff)
downloadabslibre-5478158b39c147bec163842a010f88013b1c0547.tar.gz
abslibre-5478158b39c147bec163842a010f88013b1c0547.tar.bz2
abslibre-5478158b39c147bec163842a010f88013b1c0547.zip
nodejs-grunt-cli: add new package 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
+}