# Maintainer: MedzikUser pkgname='gatsby-cli' pkgver="5.11.0" pkgrel=1 pkgdesc='Gatsby command-line interface for creating new sites and running Gatsby commands' arch=('any') url="https://www.npmjs.com/package/${pkgname}" license=('MIT') depends=('nodejs') makedepends=('npm') _file="${pkgname}-${pkgver}.tgz" source=("https://registry.npmjs.org/${pkgname}/-/${_file}") noextract=("${_file}") sha256sums=('b3aa3cdfb46e272def18a9e2e9548829eb5dc5a4fb53d76cdcc4cfd8682fd8d9') package() { npm install -g --prefix "${pkgdir}/usr" "${_file}" # Non-deterministic race in npm gives 777 permissions to random directories. # See https://github.com/npm/npm/issues/9359 for details. chmod -R u=rwX,go=rX "${pkgdir}" # npm installs package.json owned by build user # https://bugs.archlinux.org/task/63396 chown -R root:root "${pkgdir}" }