Date: Tuesday, November 12, 2019 @ 04:55:14 Author: felixonmars Revision: 526948
archrelease: copy trunk to community-any Added: node-gyp/repos/community-any/PKGBUILD (from rev 526947, node-gyp/trunk/PKGBUILD) Deleted: node-gyp/repos/community-any/PKGBUILD ----------+ PKGBUILD | 64 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 32 insertions(+), 32 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2019-11-12 04:54:58 UTC (rev 526947) +++ PKGBUILD 2019-11-12 04:55:14 UTC (rev 526948) @@ -1,32 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgname=node-gyp -pkgver=6.0.0 -pkgrel=1 -pkgdesc='Node.js native addon build tool' -arch=('any') -url='https://github.com/nodejs/node-gyp' -license=('MIT') -depends=('nodejs' 'semver') -makedepends=('npm') -source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz) -noextract=($pkgname-$pkgver.tgz) -sha512sums=('433e9775ad9b2b376ca285c84daac67f6b9a08971887bb9afa37913227c11664f3d297a8d095ba223a6a10b957f998875e986c2b321281a0ac65e41c8796be34') - -package() { - npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$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 - # https://bugs.archlinux.org/task/63396 - chown -R root:root "$pkgdir" - - # Experimental dedup - rm -r "$pkgdir"/usr/lib/node_modules/$pkgname/node_modules/semver - - install -d "$pkgdir"/usr/share/licenses/$pkgname - ln -s ../../../lib/node_modules/$pkgname/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -} Copied: node-gyp/repos/community-any/PKGBUILD (from rev 526947, node-gyp/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2019-11-12 04:55:14 UTC (rev 526948) @@ -0,0 +1,32 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=node-gyp +pkgver=6.0.1 +pkgrel=1 +pkgdesc='Node.js native addon build tool' +arch=('any') +url='https://github.com/nodejs/node-gyp' +license=('MIT') +depends=('nodejs' 'semver') +makedepends=('npm') +source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz) +noextract=($pkgname-$pkgver.tgz) +sha512sums=('b9d1c6e2119edc98bdec06096c985a470b923ae40eeca1e713864f1f74a8c77b63459f9b901b03bdf67b798035ab00fc78b5abfffd7ddf1f34eacb371c54cf47') + +package() { + npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$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 + # https://bugs.archlinux.org/task/63396 + chown -R root:root "$pkgdir" + + # Experimental dedup + rm -r "$pkgdir"/usr/lib/node_modules/$pkgname/node_modules/semver + + install -d "$pkgdir"/usr/share/licenses/$pkgname + ln -s ../../../lib/node_modules/$pkgname/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +}