# Maintainer: Jamie Magee _npmname=azurite pkgname=nodejs-azurite pkgver=3.29.0 # renovate: datasource=github-tags depName=Azure/Azurite pkgrel=2 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=('5fef5841abbafa2fbca8ab883cc5e1d9f4eef5f00035ba3c5bf023274bcfa76af188c4317ef34050b38934b941d7fa614facbf99583a70a260d87dbf1f886b99') options=('!strip') 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 {} + }