diff options
author | Martino Pilia | 2021-06-22 18:18:30 +0200 |
---|---|---|
committer | Martino Pilia | 2021-06-22 18:18:30 +0200 |
commit | 1b4afc72cc33918aa20d704b2007ae1f20eb8af3 (patch) | |
tree | 2e60f86f39792784044e84f81735002de25e5005 /PKGBUILD | |
parent | 55c45c3ab9a6e03cd72e50f1f9dbd53d139285c7 (diff) | |
download | aur-1b4afc72cc33918aa20d704b2007ae1f20eb8af3.tar.gz |
Version 1.5.1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -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" \ |