summaryrefslogtreecommitdiff
path: root/pcr/nodejs-grunt-cli/PKGBUILD
blob: 8ca0704b96070172482cfb4a41e5909f51d59e24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
}