Date: Friday, October 4, 2019 @ 06:47:54 Author: felixonmars Revision: 512691
archrelease: copy trunk to community-any Added: node-gyp/repos/community-any/PKGBUILD (from rev 512690, node-gyp/trunk/PKGBUILD) Deleted: node-gyp/repos/community-any/PKGBUILD ----------+ PKGBUILD | 64 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 32 insertions(+), 32 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2019-10-04 06:47:51 UTC (rev 512690) +++ PKGBUILD 2019-10-04 06:47:54 UTC (rev 512691) @@ -1,32 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgname=node-gyp -pkgver=5.0.2 -pkgrel=2 -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=('b0d71be4eede27d5e234085667f504d9b5ac0499f725beeb6b232a30fe308de9e5af50f0cd9c5499bb6622b974e04534a797cddab53d5880d5faed046ec23ca1') - -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 512690, node-gyp/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2019-10-04 06:47:54 UTC (rev 512691) @@ -0,0 +1,32 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=node-gyp +pkgver=5.0.3 +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=('cff25db64146526d1069052eb2f968c98b860ee6f79d46cea3975ed45cf9edc33efa8b014ef41ab415124e517593fc3cbc51cfc715d6eb3c46be4c574a968191') + +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 +}