# Maintainer : Immae _npmname=npm-cache pkgname=nodejs-$_npmname pkgver=0.6.0 pkgrel=1 pkgdesc="A command line utility that caches dependencies installed via npm." arch=('any') url="https://github.com/swarajban/npm-cache" license=('MIT') depends=('nodejs' 'npm') source=(https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz) noextract=($_npmname-$pkgver.tgz) sha256sums=('7ccb27a7bc5752bf68c74c52e531868012e7a85bfe32a00b97dd32870e633b90') 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 }