diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2015-09-25 11:57:12 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2015-09-25 11:57:12 +0200 |
commit | 3b023a2912ae44b3df25c3a504ceef02340a0cf6 (patch) | |
tree | 7e9645250487d8401c488a1c75c246d2ff4b37f6 | |
download | AUR-3b023a2912ae44b3df25c3a504ceef02340a0cf6.tar.gz AUR-3b023a2912ae44b3df25c3a504ceef02340a0cf6.tar.zst AUR-3b023a2912ae44b3df25c3a504ceef02340a0cf6.zip |
Initial commit npm-cache@0.3.6
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 23 |
2 files changed, 39 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..2a22e21 --- /dev/null +++ b/.SRCINFO | |||
@@ -0,0 +1,16 @@ | |||
1 | pkgbase = nodejs-npm-cache | ||
2 | pkgdesc = A command line utility that caches dependencies installed via npm. | ||
3 | pkgver = 0.3.6 | ||
4 | pkgrel = 1 | ||
5 | url = http://gruntjs.com/ | ||
6 | arch = any | ||
7 | license = MIT | ||
8 | depends = nodejs | ||
9 | depends = npm | ||
10 | noextract = npm-cache-0.3.6.tgz | ||
11 | options = !emptydirs | ||
12 | source = https://registry.npmjs.org/npm-cache/-/npm-cache-0.3.6.tgz | ||
13 | sha256sums = bbbabeca8f985b91443731cfdec4a9ac31b3e58369f525fe13b0c00c6f71abc8 | ||
14 | |||
15 | pkgname = nodejs-npm-cache | ||
16 | |||
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..19cb00b --- /dev/null +++ b/PKGBUILD | |||
@@ -0,0 +1,23 @@ | |||
1 | # Maintainer : Immae <ismael.bouya@normalesup.org> | ||
2 | |||
3 | _npmname=npm-cache | ||
4 | pkgname=nodejs-$_npmname | ||
5 | pkgver=0.3.6 | ||
6 | pkgrel=1 | ||
7 | pkgdesc="A command line utility that caches dependencies installed via npm." | ||
8 | arch=('any') | ||
9 | url="http://gruntjs.com/" | ||
10 | license=('MIT') | ||
11 | depends=('nodejs' 'npm') | ||
12 | source=(https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz) | ||
13 | noextract=($_npmname-$pkgver.tgz) | ||
14 | sha256sums=('bbbabeca8f985b91443731cfdec4a9ac31b3e58369f525fe13b0c00c6f71abc8') | ||
15 | options=('!emptydirs') | ||
16 | |||
17 | package() { | ||
18 | local _npmdir="$pkgdir/usr/lib/node_modules/" | ||
19 | mkdir -p "$_npmdir" | ||
20 | cd "$_npmdir" | ||
21 | |||
22 | npm install --user root -g --prefix "$pkgdir/usr" $_npmname@$pkgver | ||
23 | } | ||