summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD13
1 files changed, 8 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 08e6b1f6ae3..a38a4593b09 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer of this PKGBUILD file: Martino Pilia <martino.pilia@gmail.com>
_name=generator-code
pkgname=nodejs-generator-code
-pkgver=1.2.19
+pkgver=1.5.1
pkgrel=1
pkgdesc="Visual Studio Code extension generator"
arch=('any')
@@ -10,17 +10,20 @@ license=('MIT')
depends=('nodejs-yeoman')
makedepends=('npm')
source=("https://registry.npmjs.org/$_name/-/$_name-$pkgver.tgz")
-sha256sums=('e9879b3cd328d7fb89ef9f4c5f6f226f2ce73a1de001e39ef9e373b5403b71c8')
+sha256sums=('610f2ad0114e4fa438bbe08ff7d99f48628cb91bdec352a328807eb4f51439c2')
package() {
npm install -g \
- --user root \
--prefix "$pkgdir"/usr \
"$srcdir"/$_name-$pkgver.tgz
# Non-deterministic race in npm gives 777 permissions to random directories.
- # See https://github.com/npm/npm/issues/9359 for details.
- find "${pkgdir}"/usr -type d -exec chmod 755 {} +
+ # See https://github.com/npm/cli/issues/1103 for details.
+ find "${pkgdir}/usr" -type d -exec chmod 755 {} +
+
+ # npm gives ownership of ALL FILES to build user
+ # https://bugs.archlinux.org/task/63396
+ chown -R root:root "${pkgdir}"
install -D -m644 \
"${srcdir}/package/LICENSE" \