2021-01-02 15:23:27 +01:00
|
|
|
# Maintainer: Cedric Girard <cgirard [dot] archlinux [at] valinor [dot] fr>
|
|
|
|
|
2021-01-02 15:24:27 +01:00
|
|
|
pkgname=nodejs-csso-cli
|
2021-01-02 15:23:27 +01:00
|
|
|
pkgver=3.0.0
|
2021-05-19 13:58:06 +02:00
|
|
|
pkgrel=2
|
2021-01-02 15:27:17 +01:00
|
|
|
pkgdesc="Command line interface for CSSO"
|
2021-01-02 15:23:27 +01:00
|
|
|
arch=('any')
|
|
|
|
url="https://github.com/css/csso-cli"
|
|
|
|
license=('MIT')
|
|
|
|
depends=('nodejs' 'nodejs-csso')
|
|
|
|
makedepends=('npm' 'nodejs-csso')
|
|
|
|
source=("https://registry.npmjs.org/csso-cli/-/csso-cli-$pkgver.tgz")
|
|
|
|
sha256sums=('dc4a516ef7184a5b3c26daef0f90b2c0ea9e280119fcc97b4ce925e34ff21adc')
|
|
|
|
|
|
|
|
package() {
|
2021-05-19 13:58:06 +02:00
|
|
|
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"
|
2021-01-02 15:23:27 +01:00
|
|
|
}
|