]>
Commit | Line | Data |
---|---|---|
1 | # Maintainer : Immae <ismael.bouya@normalesup.org> | |
2 | ||
3 | _npmname=npm-cache | |
4 | pkgname=nodejs-$_npmname | |
5 | pkgver=0.4.12 | |
6 | pkgrel=1 | |
7 | pkgdesc="A command line utility that caches dependencies installed via npm." | |
8 | arch=('any') | |
9 | url="http://gruntjs.com/" | |
10 | license=('MIT') | |
11 | depends=('nodejs' 'npm') | |
12 | source=(https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz) | |
13 | noextract=($_npmname-$pkgver.tgz) | |
14 | sha256sums=('e357185e9a7c015e53a1afebcb4fa5d0517511e27bdd9727526ea320ad7298e3') | |
15 | options=('!emptydirs') | |
16 | ||
17 | package() { | |
18 | local _npmdir="$pkgdir/usr/lib/node_modules/" | |
19 | mkdir -p "$_npmdir" | |
20 | cd "$_npmdir" | |
21 | ||
22 | npm install --user root -g --prefix "$pkgdir/usr" $_npmname@$pkgver | |
23 | } |