Package Details: nodejs-clean-css 5.2.4-1

Git Clone URL: https://aur.archlinux.org/nodejs-clean-css.git (read-only, click to copy)
Package Base: nodejs-clean-css
Description: A fast, efficient, and well tested CSS minifier for node.js.
Upstream URL: https://github.com/jakubpawlowicz/clean-css
Licenses: MIT
Submitter: supermario
Maintainer: cgirard
Last Packager: cgirard
Votes: 11
Popularity: 0.000078
First Submitted: 2015-07-16 01:21 (UTC)
Last Updated: 2022-03-09 14:58 (UTC)

Latest Comments

clarfonthey commented on 2021-12-12 01:08 (UTC)

Running this as the user nobody fails since it tries to put the cache folder in /root, which fails.

Personally I use this patch which fixes that problem:

diff --git a/PKGBUILD b/PKGBUILD
index 60af76d..a1fff1c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,7 +16,9 @@ noextract=($_npmname-$pkgver.tgz)
 sha256sums=('4eedbac6e7157bdd6d0879770359d8d29260cf453564e3dcae098b9413a4b324')

 package() {
-  npm install -g --prefix "$pkgdir/usr" "$srcdir"/$_npmname-$pkgver.tgz
+  mkdir -p "$srcdir/cache"
+
+  npm install -g --prefix "$pkgdir/usr" --cache "$srcdir/cache" "$srcdir"/$_npmname-$pkgver.tgz

   # Non-deterministic race in npm gives 777 permissions to random directories.
   # See https://github.com/npm/npm/issues/9359 for details.

Not sure if you'd like to handle it this way, but it seems simple enough it might be worth adding.

cgirard commented on 2021-05-15 16:22 (UTC)

Adopted, updated and removed bogus --user root

supermario commented on 2018-02-28 12:49 (UTC)

clean-css v4 split cli into a separate package: nodejs-clean-css-cli