Date: Saturday, September 5, 2020 @ 21:18:33 Author: felixonmars Revision: 699192
archrelease: copy trunk to community-any Added: node-gyp/repos/community-any/PKGBUILD (from rev 699191, node-gyp/trunk/PKGBUILD) Deleted: node-gyp/repos/community-any/PKGBUILD ----------+ PKGBUILD | 64 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 32 insertions(+), 32 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-09-05 21:18:23 UTC (rev 699191) +++ PKGBUILD 2020-09-05 21:18:33 UTC (rev 699192) @@ -1,32 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgname=node-gyp -pkgver=7.0.0 -pkgrel=2 -pkgdesc='Node.js native addon build tool' -arch=('any') -url='https://github.com/nodejs/node-gyp' -license=('MIT') -depends=('nodejs' 'python' 'semver') -makedepends=('npm') -source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz) -noextract=($pkgname-$pkgver.tgz) -sha512sums=('656df8a80dc22523ca0f3d922411ca46fc8d40dd3258ee4418a2a4b0973e8c496ef55038ebc830253c9302b0b588e5d4eeb3775ad7e0fc232dfdd040385223be') - -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 699191, node-gyp/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-09-05 21:18:33 UTC (rev 699192) @@ -0,0 +1,32 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=node-gyp +pkgver=7.1.0 +pkgrel=1 +pkgdesc='Node.js native addon build tool' +arch=('any') +url='https://github.com/nodejs/node-gyp' +license=('MIT') +depends=('nodejs' 'python' 'semver') +makedepends=('npm') +source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz) +noextract=($pkgname-$pkgver.tgz) +sha512sums=('ae39474259e5d5daa20d9c596222aa41dae389ab3b57ef353954793d3cd98a8081b5690d76b2b2d3a334e472cac72fe970a8a429109a6de0d1a1968473a9c88f') + +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 +}