summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartino Pilia2021-06-22 18:18:30 +0200
committerMartino Pilia2021-06-22 18:18:30 +0200
commit1b4afc72cc33918aa20d704b2007ae1f20eb8af3 (patch)
tree2e60f86f39792784044e84f81735002de25e5005
parent55c45c3ab9a6e03cd72e50f1f9dbd53d139285c7 (diff)
downloadaur-1b4afc72cc33918aa20d704b2007ae1f20eb8af3.tar.gz
Version 1.5.1
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD13
2 files changed, 11 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ff54abb3551..82d1fa60b2f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,13 @@
pkgbase = nodejs-generator-code
pkgdesc = Visual Studio Code extension generator
- pkgver = 1.2.19
+ pkgver = 1.5.1
pkgrel = 1
url = https://github.com/Microsoft/vscode-generator-code
arch = any
license = MIT
makedepends = npm
depends = nodejs-yeoman
- source = https://registry.npmjs.org/generator-code/-/generator-code-1.2.19.tgz
- sha256sums = e9879b3cd328d7fb89ef9f4c5f6f226f2ce73a1de001e39ef9e373b5403b71c8
+ source = https://registry.npmjs.org/generator-code/-/generator-code-1.5.1.tgz
+ sha256sums = 610f2ad0114e4fa438bbe08ff7d99f48628cb91bdec352a328807eb4f51439c2
pkgname = nodejs-generator-code
-
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" \