Date: Monday, October 14, 2019 @ 16:46:25 Author: felixonmars Revision: 515746
upgpkg: jake 10.0.3-1 Modified: jake/trunk/PKGBUILD ----------+ PKGBUILD | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-10-14 16:44:56 UTC (rev 515745) +++ PKGBUILD 2019-10-14 16:46:25 UTC (rev 515746) @@ -1,7 +1,7 @@ # Maintainer: Felix Yan <felixonm...@archlinux.org> pkgname=jake -pkgver=8.1.1 +pkgver=10.0.3 pkgrel=1 pkgdesc="JavaScript build tool, similar to Make or Rake" arch=('any') @@ -12,11 +12,16 @@ install=${pkgname}.install source=("https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz") noextract=($pkgname-$pkgver.tgz) -sha512sums=('4495160dab39c6ee2b3fa09b08faa454ff7ebe094c3d38616488f4f04b634a2501a7046d56385284f288a444f2121cbf67584493deea213c5b64af965ed4b2cf') +sha512sums=('3c945cb1a2bb31cd6bc209610ac872eb93539966ede66050b25e1b16ae732912d3bd064a7ccb9cde36e26e085a29f15eae5a318dd19c6e5ebbc0463656ec9d63') package() { npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz - # Why 777? :/ + # 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" }