pkgname=nodejs-fauna-shell _pkgname=${pkgname#nodejs-} pkgver=0.12.5 pkgrel=1 pkgdesc="faunadb access via the cli" arch=(any) url="https://github.com/fauna/fauna-shell" licence=(MPL2) depends=(nodejs) makedepends=(npm) source=("https://registry.npmjs.org/$_pkgname/-/$_pkgname-$pkgver.tgz") sha256sums=('0dc2fa7eded1c8c592ba09767e763970ed10fdbff52d8d860292da5387ce895e') noextract=("$_pkgname-$pkgver.tgz") package() { npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/"$_pkgname-$pkgver.tgz" find "$pkgdir"/usr -type d -exec chmod 755 {} + }