[arch-commits] Commit in uglify-js/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Oct 10 19:59:50 UTC 2019
Date: Thursday, October 10, 2019 @ 19:59:50
Author: felixonmars
Revision: 514519
upgpkg: uglify-js 3.6.1-1
Modified:
uglify-js/trunk/PKGBUILD
----------+
PKGBUILD | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-10 19:59:01 UTC (rev 514518)
+++ PKGBUILD 2019-10-10 19:59:50 UTC (rev 514519)
@@ -2,7 +2,7 @@
# Contributor: Daniel Nagy <danielnagy at gmx de>
pkgname=uglify-js
-pkgver=3.6.0
+pkgver=3.6.1
pkgrel=1
pkgdesc="JavaScript parser, mangler/compressor and beautifier toolkit"
arch=('any')
@@ -13,7 +13,7 @@
install=${pkgname}.install
source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
noextract=($pkgname-$pkgver.tgz)
-sha512sums=('5be8eb50726bdc35ca86bb12ecd515c67df3a8c3859f484bfc48babf46a7088328282f774e371f9536a0c081cb5bb49f3057e242e92d4321550851c6504d3eca')
+sha512sums=('f9d4892c9a5705bea83073fe62fc3c854804973e202d387cd97b97ebc4222554d7684e626e5e9bbb384d910758841948868cd6382f607b5eb0c919a31b84f055')
package() {
npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
@@ -20,8 +20,13 @@
mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
ln -s "../../../lib/node_modules/uglify-js/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/"
- # 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"
}
# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list