blob: b63941231e51dcec885a87adadfcd7c1ce947f9a (
plain) (
tree)
|
|
# Maintainer : Immae <ismael.bouya@normalesup.org>
_npmname=npm-cache
pkgname=nodejs-$_npmname
pkgver=0.5.1
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=('5ca93f1a71cddff741c62e9189d115dfdfe86127d0baf15431fb7417cf1b538a')
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
}
|