]> git.immae.eu Git - perso/Immae/Config/AUR.git/blame_incremental - PKGBUILD
Upgrade to 0.3.7
[perso/Immae/Config/AUR.git] / PKGBUILD
... / ...
CommitLineData
1# Maintainer : Immae <ismael.bouya@normalesup.org>
2
3_npmname=npm-cache
4pkgname=nodejs-$_npmname
5pkgver=0.3.7
6pkgrel=1
7pkgdesc="A command line utility that caches dependencies installed via npm."
8arch=('any')
9url="http://gruntjs.com/"
10license=('MIT')
11depends=('nodejs' 'npm')
12source=(https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz)
13noextract=($_npmname-$pkgver.tgz)
14sha256sums=('760e27c4e8737e82461ad0b4e54f3dbeb95f33a5d66a8e240bdb68bb488b5701')
15options=('!emptydirs')
16
17package() {
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}