pkgname=nodejs-fauna-shell _pkgname=${pkgname#nodejs-} pkgver=0.9.2 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=('3fa3e83fab7bc1625b38616b8254a313216b41815bcdaeaabb21b485d8144f0d') 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 {} + }