]> git.immae.eu Git - perso/Immae/Config/AUR.git/commitdiff
Initial commit npm-cache@0.3.6
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Fri, 25 Sep 2015 09:57:12 +0000 (11:57 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Fri, 25 Sep 2015 09:57:12 +0000 (11:57 +0200)
.SRCINFO [new file with mode: 0644]
PKGBUILD [new file with mode: 0644]

diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644 (file)
index 0000000..2a22e21
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = nodejs-npm-cache
+       pkgdesc = A command line utility that caches dependencies installed via npm.
+       pkgver = 0.3.6
+       pkgrel = 1
+       url = http://gruntjs.com/
+       arch = any
+       license = MIT
+       depends = nodejs
+       depends = npm
+       noextract = npm-cache-0.3.6.tgz
+       options = !emptydirs
+       source = https://registry.npmjs.org/npm-cache/-/npm-cache-0.3.6.tgz
+       sha256sums = bbbabeca8f985b91443731cfdec4a9ac31b3e58369f525fe13b0c00c6f71abc8
+
+pkgname = nodejs-npm-cache
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644 (file)
index 0000000..19cb00b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,23 @@
+# Maintainer : Immae <ismael.bouya@normalesup.org>
+
+_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
+}