aboutsummaryrefslogblamecommitdiff
path: root/PKGBUILD
blob: 5fce21db2c116807d6fbc249d4fbe44a59954176 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13



                                                  
             







                                                                            
                                                                               








                                                                     
# Maintainer : Immae <ismael.bouya@normalesup.org>

_npmname=npm-cache
pkgname=nodejs-$_npmname
pkgver=0.4.11
pkgrel=1
pkgdesc="A command line utility that caches dependencies installed via npm."
arch=('any')
url="http://gruntjs.com/"
license=('MIT')
depends=('nodejs' 'npm')
source=(https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz)
noextract=($_npmname-$pkgver.tgz)
sha256sums=('2f0e6ccf8b777285d11f8e6ac75acbab583840f6a8b2929346b411c120acad92')
options=('!emptydirs')

package() {
  local _npmdir="$pkgdir/usr/lib/node_modules/"
  mkdir -p "$_npmdir"
  cd "$_npmdir"

  npm install --user root -g --prefix "$pkgdir/usr" $_npmname@$pkgver
}