[arch-commits] Commit in eslint/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Oct 3 22:00:31 UTC 2019
Date: Thursday, October 3, 2019 @ 22:00:31
Author: felixonmars
Revision: 512579
upgpkg: eslint 6.5.1-1
Modified:
eslint/trunk/PKGBUILD
----------+
PKGBUILD | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-03 22:00:12 UTC (rev 512578)
+++ PKGBUILD 2019-10-03 22:00:31 UTC (rev 512579)
@@ -1,7 +1,7 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
pkgname=eslint
-pkgver=6.5.0
+pkgver=6.5.1
pkgrel=1
pkgdesc='An AST-based pattern checker for JavaScript'
arch=('any')
@@ -11,14 +11,19 @@
makedepends=('npm')
source=("https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz")
noextract=("$pkgname-$pkgver.tgz")
-sha512sums=('2086d25bebca3aa31ab4f992f5acb292ee2dbd6c476368ab89c491b4ecfaf9903920f465817cc42f4bbf8fa76be1e85ad2e82684cc034eac6d98dbb7923f4ee3')
+sha512sums=('df687df41a0b612b53d62ab5bf63fdbb0a72ce74383368d188507a69c8ad2b3e761aa9febcf68c0d44c1d5b622d5637836aba3db0fadf9b8a66141bcdc30b9e4')
package() {
npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
- # Fix permissions
- 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"
+
install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
ln -s ../../../lib/node_modules/eslint/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
More information about the arch-commits
mailing list