2020-12-18 13:50:43 +01:00
|
|
|
# Maintainer: Cedric Girard <cgirard [dot] archlinux [at] valinor [dot] fr>
|
|
|
|
# Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com
|
2020-12-16 11:46:09 +01:00
|
|
|
|
|
|
|
pkgname=nodejs-less
|
2024-02-21 10:23:43 +01:00
|
|
|
pkgver=4.2.0
|
2022-07-04 11:14:32 +02:00
|
|
|
pkgrel=1
|
2020-12-16 11:46:09 +01:00
|
|
|
pkgdesc="A standalone compiler for the LESS CSS language."
|
|
|
|
arch=('any')
|
|
|
|
url="http://lesscss.org/"
|
2024-02-21 10:23:43 +01:00
|
|
|
license=('Apache-2.0')
|
2020-12-16 11:46:09 +01:00
|
|
|
depends=('nodejs')
|
|
|
|
makedepends=('npm')
|
|
|
|
conflicts=('lessc')
|
|
|
|
provides=("lessc=$pkgver")
|
|
|
|
replaces=('lessc')
|
|
|
|
source=("https://registry.npmjs.org/less/-/less-$pkgver.tgz")
|
2024-02-21 10:23:43 +01:00
|
|
|
sha256sums=('45a9c7dd34bf354a6c27ff61fcb2afc1c15dcce704b62c6e48f77b4ad53f9531')
|
2020-12-16 11:46:09 +01:00
|
|
|
|
|
|
|
package() {
|
2021-12-13 14:55:46 +01:00
|
|
|
npm install -g --prefix "$pkgdir"/usr --cache "${srcdir}/npm-cache" "$srcdir"/less-$pkgver.tgz
|
2021-05-15 18:08:51 +02:00
|
|
|
|
|
|
|
# npm installs package.json owned by build user
|
|
|
|
# https://bugs.archlinux.org/task/63396
|
|
|
|
chown -R root:root "$pkgdir"
|
|
|
|
|
2020-12-16 11:46:09 +01:00
|
|
|
}
|