upgpkg: nodejs-csso 4.2.0-2
remove root
This commit is contained in:
parent
870330fa49
commit
4abf153ba8
2 changed files with 11 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
||||||
pkgbase = nodejs-csso
|
pkgbase = nodejs-csso
|
||||||
pkgdesc = CSS minifier with structural optimisations
|
pkgdesc = CSS minifier with structural optimisations
|
||||||
pkgver = 4.2.0
|
pkgver = 4.2.0
|
||||||
pkgrel = 1
|
pkgrel = 2
|
||||||
url = https://github.com/css/csso
|
url = https://github.com/css/csso
|
||||||
arch = any
|
arch = any
|
||||||
license = MIT
|
license = MIT
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
pkgname=nodejs-csso
|
pkgname=nodejs-csso
|
||||||
pkgver=4.2.0
|
pkgver=4.2.0
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="CSS minifier with structural optimisations"
|
pkgdesc="CSS minifier with structural optimisations"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url="https://github.com/css/csso"
|
url="https://github.com/css/csso"
|
||||||
|
@ -13,7 +13,13 @@ source=("https://registry.npmjs.org/csso/-/csso-$pkgver.tgz")
|
||||||
sha256sums=('4b9b8c96cb4082224fec97d9050c48b1877bd03fab6332b2cb4b649b0f71f948')
|
sha256sums=('4b9b8c96cb4082224fec97d9050c48b1877bd03fab6332b2cb4b649b0f71f948')
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/csso-$pkgver.tgz
|
npm install -g --prefix "$pkgdir"/usr "$srcdir"/csso-$pkgver.tgz
|
||||||
chmod -R go-w "$pkgdir"/usr
|
|
||||||
chown -R root:root "$pkgdir"/usr
|
# 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