[arch-commits] Commit in node-gyp/repos/community-any (PKGBUILD PKGBUILD)

Felix Yan felixonmars at archlinux.org
Mon Sep 2 08:05:28 UTC 2019


    Date: Monday, September 2, 2019 @ 08:05:28
  Author: felixonmars
Revision: 506798

archrelease: copy trunk to community-any

Added:
  node-gyp/repos/community-any/PKGBUILD
    (from rev 506796, node-gyp/trunk/PKGBUILD)
Deleted:
  node-gyp/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   59 ++++++++++++++++++++++++++++++++---------------------------
 1 file changed, 32 insertions(+), 27 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-02 08:05:27 UTC (rev 506797)
+++ PKGBUILD	2019-09-02 08:05:28 UTC (rev 506798)
@@ -1,27 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=node-gyp
-pkgver=5.0.2
-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=('b0d71be4eede27d5e234085667f504d9b5ac0499f725beeb6b232a30fe308de9e5af50f0cd9c5499bb6622b974e04534a797cddab53d5880d5faed046ec23ca1')
-
-package() {
-  npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
-
-  # Why 777? :/
-  chmod -R u=rwX,go=rX "$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 506796, node-gyp/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-09-02 08:05:28 UTC (rev 506798)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at 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
+}


More information about the arch-commits mailing list