upgpkg: nodejs-csso-cli 3.0.0-2
remove root
This commit is contained in:
parent
4abf153ba8
commit
115cdb0076
2 changed files with 11 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
pkgbase = nodejs-csso-cli
|
||||
pkgdesc = Command line interface for CSSO
|
||||
pkgver = 3.0.0
|
||||
pkgrel = 1
|
||||
pkgrel = 2
|
||||
url = https://github.com/css/csso-cli
|
||||
arch = any
|
||||
license = MIT
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
pkgname=nodejs-csso-cli
|
||||
pkgver=3.0.0
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Command line interface for CSSO"
|
||||
arch=('any')
|
||||
url="https://github.com/css/csso-cli"
|
||||
|
@ -13,7 +13,13 @@ source=("https://registry.npmjs.org/csso-cli/-/csso-cli-$pkgver.tgz")
|
|||
sha256sums=('dc4a516ef7184a5b3c26daef0f90b2c0ea9e280119fcc97b4ce925e34ff21adc')
|
||||
|
||||
package() {
|
||||
npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/csso-cli-$pkgver.tgz
|
||||
chmod -R go-w "$pkgdir"/usr
|
||||
chown -R root:root "$pkgdir"/usr
|
||||
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 installs package.json owned by build user
|
||||
# https://bugs.archlinux.org/task/63396
|
||||
chown -R root:root "$pkgdir"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue