From 3b023a2912ae44b3df25c3a504ceef02340a0cf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Fri, 25 Sep 2015 11:57:12 +0200 Subject: Initial commit npm-cache@0.3.6 --- PKGBUILD | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 PKGBUILD (limited to 'PKGBUILD') diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..19cb00b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer : Immae + +_npmname=npm-cache +pkgname=nodejs-$_npmname +pkgver=0.3.6 +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=('bbbabeca8f985b91443731cfdec4a9ac31b3e58369f525fe13b0c00c6f71abc8') +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 +} -- cgit v1.2.3