# Maintainer: Radoslaw Mejer pkgname=nodejs-contentful-cli pkgver=1.2.1 pkgrel=1 pkgdesc="The official Contentful command line interface" arch=("i686" "x86_64") url="https://github.com/contentful/contentful-cli" makedepends=('npm') license=('MIT') _npmname=contentful-cli _npmver="${pkgver}" _fullpkg="${_npmname}-${_npmver}" source=("https://registry.npmjs.org/${_npmname}/-/${_fullpkg}.tgz") noextract=("${_fullpkg}.tgz") sha256sums=("92cdbff4d67265f92490224b45450fea475a04cdda796d072e0f05079c072f2e") package() { npm install -g --user root --production --prefix "$pkgdir"/usr "$srcdir"/"${_fullpkg}.tgz" # 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 {} + }