2021-01-02 15:19:44 +01:00
|
|
|
# Maintainer: Cedric Girard <cgirard [dot] archlinux [at] valinor [dot] fr>
|
|
|
|
|
|
|
|
pkgname=nodejs-csso
|
2021-12-06 10:31:15 +01:00
|
|
|
pkgver=5.0.0
|
|
|
|
pkgrel=1
|
2021-01-02 15:19:44 +01:00
|
|
|
pkgdesc="CSS minifier with structural optimisations"
|
|
|
|
arch=('any')
|
|
|
|
url="https://github.com/css/csso"
|
|
|
|
license=('MIT')
|
|
|
|
depends=('nodejs')
|
|
|
|
makedepends=('npm')
|
|
|
|
source=("https://registry.npmjs.org/csso/-/csso-$pkgver.tgz")
|
2021-12-06 10:31:15 +01:00
|
|
|
sha256sums=('5786f51f021300198086494a2a04aa4baf6126f0d39d3a749c28f293655fb893')
|
2021-01-02 15:19:44 +01:00
|
|
|
|
|
|
|
package() {
|
2021-05-19 13:56:12 +02:00
|
|
|
npm install -g --prefix "$pkgdir"/usr "$srcdir"/csso-$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"
|
2021-01-02 15:19:44 +01:00
|
|
|
}
|