[arch-commits] Commit in npm-check-updates/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Tue Oct 8 21:50:52 UTC 2019
Date: Tuesday, October 8, 2019 @ 21:50:51
Author: felixonmars
Revision: 514281
upgpkg: npm-check-updates 3.1.24-1
Modified:
npm-check-updates/trunk/PKGBUILD
----------+
PKGBUILD | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-08 21:27:59 UTC (rev 514280)
+++ PKGBUILD 2019-10-08 21:50:51 UTC (rev 514281)
@@ -2,7 +2,7 @@
pkgname=npm-check-updates
pkgdesc='Find newer versions of dependencies than what your package.json or bower.json allows'
-pkgver=3.1.23
+pkgver=3.1.24
pkgrel=1
arch=('any')
url='https://github.com/tjunnone/npm-check-updates'
@@ -11,7 +11,7 @@
makedepends=('npm')
source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
noextract=($pkgname-$pkgver.tgz)
-sha512sums=('67676431d360b9ee8e3e44033dc00aeb642bc2ff86d4f68498aac3aeb4808923fba510f7bb7d31395cb59cbba44b55eb276ff317c5d357115ef7fb9b72f95c3d')
+sha512sums=('f02c655ec48fa3c4420071eac9cc54f60703712928048d08d9b921dfb1c9af2d95261a86c5e567115abcbed15c8a0cc846b5206d23b22a04a6fa3beede8a2433')
package() {
npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
@@ -22,6 +22,11 @@
rm -r $dep;
done
- # Fix npm derp
- find "$pkgdir/usr" -type d -exec chmod 755 '{}' +
+ # 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"
}
More information about the arch-commits
mailing list