]> git.immae.eu Git - perso/Immae/Config/AUR.git/blame - PKGBUILD
Update to 0.7.0
[perso/Immae/Config/AUR.git] / PKGBUILD
CommitLineData
3b023a29
IB
1# Maintainer : Immae <ismael.bouya@normalesup.org>
2
3_npmname=npm-cache
4pkgname=nodejs-$_npmname
550ed1fe 5pkgver=0.7.0
3b023a29
IB
6pkgrel=1
7pkgdesc="A command line utility that caches dependencies installed via npm."
8arch=('any')
50886cf5 9url="https://github.com/swarajban/npm-cache"
3b023a29
IB
10license=('MIT')
11depends=('nodejs' 'npm')
550ed1fe
IB
12source=("https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz")
13noextract=("$_npmname-$pkgver.tgz")
14sha512sums=('2cc2f53dcdb42634053b93e39cda7ca1713bfb389e41546cf65c86135e13b8462ae662963bacf602784c242d102e0d9c6eb258a51aaad04fc0a567d7bc18d8f5')
3b023a29
IB
15options=('!emptydirs')
16
17package() {
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}