diff --git a/nodejs-less/.SRCINFO b/nodejs-less/.SRCINFO new file mode 100644 index 0000000..8b7edbf --- /dev/null +++ b/nodejs-less/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = nodejs-less + pkgdesc = A standalone compiler for the LESS CSS language. + pkgver = 3.12.2 + pkgrel = 1 + url = http://lesscss.org/ + arch = any + license = Apache + makedepends = npm + depends = nodejs + provides = lessc=3.12.2 + conflicts = lessc + replaces = lessc + source = https://registry.npmjs.org/less/-/less-3.12.2.tgz + sha256sums = c11a81e671deba197149e5c08ad0762b4b402c37274ced94c0e360c36af91be3 + +pkgname = nodejs-less + diff --git a/nodejs-less/PKGBUILD b/nodejs-less/PKGBUILD new file mode 100644 index 0000000..1094c50 --- /dev/null +++ b/nodejs-less/PKGBUILD @@ -0,0 +1,22 @@ +# Maintainer: Massimiliano Torromeo + +pkgname=nodejs-less +pkgver=3.12.2 +pkgrel=1 +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=('c11a81e671deba197149e5c08ad0762b4b402c37274ced94c0e360c36af91be3') + +package() { + npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/less-$pkgver.tgz + chmod -R go-w "$pkgdir"/usr + chown -R root:root "$pkgdir"/usr +}