upgpkg: nodejs-less 4.1.2-2

remove unneeded permission fix and add npm cache workaround
This commit is contained in:
Cedric Girard 2021-12-13 14:55:46 +01:00
parent 43bd23d901
commit 9dd93d840c
Signed by: X-dark
GPG Key ID: E7D0E125DB9519E4
2 changed files with 3 additions and 7 deletions

View File

@ -1,7 +1,7 @@
pkgbase = nodejs-less
pkgdesc = A standalone compiler for the LESS CSS language.
pkgver = 4.1.2
pkgrel = 1
pkgrel = 2
url = http://lesscss.org/
arch = any
license = Apache

View File

@ -3,7 +3,7 @@
pkgname=nodejs-less
pkgver=4.1.2
pkgrel=1
pkgrel=2
pkgdesc="A standalone compiler for the LESS CSS language."
arch=('any')
url="http://lesscss.org/"
@ -17,11 +17,7 @@ source=("https://registry.npmjs.org/less/-/less-$pkgver.tgz")
sha256sums=('f2067b038bec06176cbe955f26bdb29cfc9bed7aa511ac9243db50b31cbf59ce')
package() {
npm install -g --prefix "$pkgdir"/usr "$srcdir"/less-$pkgver.tgz
# Non-deterministic race in npm gives 777 permissions to random directories.
# See https://github.com/npm/npm/issues/9359 for details.
chmod -R u=rwX,go=rX "$pkgdir"
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