summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7bd0f977337deb40281360f035a09e1610ee2df7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Maintainer: aboe76 AT gmail DOT com>

pkgname=nodejs-mkdirp
_npmname=mkdirp
pkgver=0.5.1
pkgrel=1
pkgdesc="Recursively mkdir, like mkdir -p, but in node.js"
arch=('any')
depends=('npm' 'nodejs')
url="https://github.com/substack/node-mkdirp"
license=('MIT')
provides=('nodejs-mkdirp')
source=(".AURINFO")
md5sums=('SKIP')

package() {
  local _npmdir="$pkgdir/usr/lib/node_modules/"
  mkdir -p $_npmdir
  cd $_npmdir
  npm config set strict-ssl false
  npm install --user root -g --prefix "$pkgdir/usr" $_npmname@$pkgver
  npm config set strict-ssl true
  rmdir "${pkgdir}/usr/etc"
}