Package Details: nodejs-less-plugin-clean-css 1.6.0-1

Git Clone URL: https://aur.archlinux.org/nodejs-less-plugin-clean-css.git (read-only, click to copy)
Package Base: nodejs-less-plugin-clean-css
Description: Post-process and compress CSS using clean-css
Upstream URL: https://github.com/less/less-plugin-clean-css
Licenses: MIT
Submitter: bidossessi
Maintainer: alerque
Last Packager: alerque
Votes: 7
Popularity: 0.000000
First Submitted: 2015-10-02 15:36 (UTC)
Last Updated: 2024-07-16 10:09 (UTC)

Latest Comments

vdemin commented on 2025-11-28 20:07 (UTC) (edited on 2025-11-30 22:49 (UTC) by vdemin)

Hello, Caleb! Please change license to Apache-2.0 and drop --user root. We can remove nodejs-clean-css from deps since it is not a peerDependency. According to Node.js_package_guidelines, for the latest versions of npm we don't need workarounds, and the PKGBUILD can be simplified as follows:

_npmname=less-plugin-clean-css
pkgname=nodejs-${_npmname}
pkgver=1.6.0
pkgrel=1
pkgdesc='Post-process and compress CSS using clean-css'
arch=('any')
url="https://github.com/less/${_npmname}"
license=('Apache-2.0')
depends=('nodejs' 'nodejs-less')
makedepends=('npm')
source=("https://registry.npmjs.org/${_npmname}/-/${_npmname}-${pkgver}.tgz")
sha256sums=('577de8336c284d6cb454cd6dd71910a2fc85d9a05b5c9e15efc598de89848dda')
noextract=("${_npmname}-${pkgver}.tgz")

package() {
    npm install -g --prefix "${pkgdir}/usr" --cache "${srcdir}/npm-cache" "${srcdir}/${_npmname}-${pkgver}.tgz"
    install -Dm0644 "${pkgdir}/usr/lib/node_modules/${_npmname}/LICENSE" \
        "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

.