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
|
pkgbase = nodejs-less
|
||||||
pkgdesc = A standalone compiler for the LESS CSS language.
|
pkgdesc = A standalone compiler for the LESS CSS language.
|
||||||
pkgver = 4.1.2
|
pkgver = 4.1.2
|
||||||
pkgrel = 1
|
pkgrel = 2
|
||||||
url = http://lesscss.org/
|
url = http://lesscss.org/
|
||||||
arch = any
|
arch = any
|
||||||
license = Apache
|
license = Apache
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
pkgname=nodejs-less
|
pkgname=nodejs-less
|
||||||
pkgver=4.1.2
|
pkgver=4.1.2
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="A standalone compiler for the LESS CSS language."
|
pkgdesc="A standalone compiler for the LESS CSS language."
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url="http://lesscss.org/"
|
url="http://lesscss.org/"
|
||||||
|
@ -17,11 +17,7 @@ source=("https://registry.npmjs.org/less/-/less-$pkgver.tgz")
|
||||||
sha256sums=('f2067b038bec06176cbe955f26bdb29cfc9bed7aa511ac9243db50b31cbf59ce')
|
sha256sums=('f2067b038bec06176cbe955f26bdb29cfc9bed7aa511ac9243db50b31cbf59ce')
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
npm install -g --prefix "$pkgdir"/usr "$srcdir"/less-$pkgver.tgz
|
npm install -g --prefix "$pkgdir"/usr --cache "${srcdir}/npm-cache" "$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 installs package.json owned by build user
|
# npm installs package.json owned by build user
|
||||||
# https://bugs.archlinux.org/task/63396
|
# https://bugs.archlinux.org/task/63396
|
||||||
|
|
Loading…
Reference in a new issue