archlinux-pkgbuilds/nodejs-less/PKGBUILD
Cedric Girard 9dd93d840c
upgpkg: nodejs-less 4.1.2-2
remove unneeded permission fix and add npm cache workaround
2021-12-13 14:55:46 +01:00

26 lines
798 B
Bash

# Maintainer: Cedric Girard <cgirard [dot] archlinux [at] valinor [dot] fr>
# Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com
pkgname=nodejs-less
pkgver=4.1.2
pkgrel=2
pkgdesc="A standalone compiler for the LESS CSS language."
arch=('any')
url="http://lesscss.org/"
license=('Apache')
depends=('nodejs')
makedepends=('npm')
conflicts=('lessc')
provides=("lessc=$pkgver")
replaces=('lessc')
source=("https://registry.npmjs.org/less/-/less-$pkgver.tgz")
sha256sums=('f2067b038bec06176cbe955f26bdb29cfc9bed7aa511ac9243db50b31cbf59ce')
package() {
npm install -g --prefix "$pkgdir"/usr --cache "${srcdir}/npm-cache" "$srcdir"/less-$pkgver.tgz
# npm installs package.json owned by build user
# https://bugs.archlinux.org/task/63396
chown -R root:root "$pkgdir"
}