# Maintainer: Jamie Magee _npmname=azurite pkgname=nodejs-azurite pkgver=3.14.2 pkgrel=1 pkgdesc="A lightweight server clone of Azure Storage that simulates most of the commands supported by it with minimal dependencies" arch=(any) url="https://github.com/azure/azurite" license=(MIT) depends=('nodejs' 'npm') optdepends=() source=(https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz) noextract=($_npmname-$pkgver.tgz) b2sums=('a444176a8914653a19a2daa04af2710983c5edf9b9ae4ea1666774f1e6654aa32a8dc5f6488d5ebe39c7ec54639fc0e8ccd4622cdfce2a3fada762d543d2232b') package() { cd "$srcdir" local _npmdir="$pkgdir/usr/lib/node_modules/" mkdir -p "$_npmdir" cd "$_npmdir" npm install --user root -g --prefix "$pkgdir/usr" $_npmname@$pkgver # Non-deterministic race in npm gives 777 permissions to random directories. # See https://github.com/npm/npm/issues/9359 for details. find "${pkgdir}"/usr -type d -exec chmod 755 {} + }