1 # Maintainer : Immae <ismael.bouya@normalesup.org>
4 pkgname=nodejs-$_npmname
7 pkgdesc="A command line utility that caches dependencies installed via npm."
9 url="https://github.com/swarajban/npm-cache"
11 depends=('nodejs' 'npm')
12 source=("https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz")
13 noextract=("$_npmname-$pkgver.tgz")
14 sha512sums=('2cc2f53dcdb42634053b93e39cda7ca1713bfb389e41546cf65c86135e13b8462ae662963bacf602784c242d102e0d9c6eb258a51aaad04fc0a567d7bc18d8f5')
15 options=('!emptydirs')
18 local _npmdir="$pkgdir/usr/lib/node_modules/"
22 npm install --user root -g --prefix "$pkgdir/usr" $_npmname@$pkgver