upgpkg: nodejs-less 4.1.2-2
remove unneeded permission fix and add npm cache workaround
This commit is contained in:
parent
43bd23d901
commit
9dd93d840c
2 changed files with 3 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue