From 43bd23d901ad0d71cdd89ebfc6f0c413288d29f5 Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Mon, 13 Dec 2021 14:54:39 +0100 Subject: [PATCH] upgpkg: nodejs-csso-cli 3.0.0-3 remove unneeded permission fix and add npm cache workaround --- nodejs-csso-cli/.SRCINFO | 3 +-- nodejs-csso-cli/PKGBUILD | 8 ++------ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/nodejs-csso-cli/.SRCINFO b/nodejs-csso-cli/.SRCINFO index 146185b..56a97dc 100644 --- a/nodejs-csso-cli/.SRCINFO +++ b/nodejs-csso-cli/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = nodejs-csso-cli pkgdesc = Command line interface for CSSO pkgver = 3.0.0 - pkgrel = 2 + pkgrel = 3 url = https://github.com/css/csso-cli arch = any license = MIT @@ -13,4 +13,3 @@ pkgbase = nodejs-csso-cli sha256sums = dc4a516ef7184a5b3c26daef0f90b2c0ea9e280119fcc97b4ce925e34ff21adc pkgname = nodejs-csso-cli - diff --git a/nodejs-csso-cli/PKGBUILD b/nodejs-csso-cli/PKGBUILD index 6cbe75e..2b2db14 100644 --- a/nodejs-csso-cli/PKGBUILD +++ b/nodejs-csso-cli/PKGBUILD @@ -2,7 +2,7 @@ pkgname=nodejs-csso-cli pkgver=3.0.0 -pkgrel=2 +pkgrel=3 pkgdesc="Command line interface for CSSO" arch=('any') url="https://github.com/css/csso-cli" @@ -13,11 +13,7 @@ source=("https://registry.npmjs.org/csso-cli/-/csso-cli-$pkgver.tgz") sha256sums=('dc4a516ef7184a5b3c26daef0f90b2c0ea9e280119fcc97b4ce925e34ff21adc') package() { - npm install -g --prefix "$pkgdir"/usr "$srcdir"/csso-cli-$pkgver.tgz - - # 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 install -g --prefix "$pkgdir"/usr --cache "${srcdir}/npm-cache" "$srcdir"/csso-cli-$pkgver.tgz # npm installs package.json owned by build user # https://bugs.archlinux.org/task/63396