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

Felix Yan felixonmars at archlinux.org
Wed Jul 24 07:19:27 UTC 2019


    Date: Wednesday, July 24, 2019 @ 07:19:26
  Author: felixonmars
Revision: 492680

archrelease: copy trunk to community-any

Added:
  npm/repos/community-any/PKGBUILD
    (from rev 492679, npm/trunk/PKGBUILD)
Deleted:
  npm/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   98 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 49 insertions(+), 49 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-07-24 07:19:16 UTC (rev 492679)
+++ PKGBUILD	2019-07-24 07:19:26 UTC (rev 492680)
@@ -1,49 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=npm
-pkgver=6.10.1
-pkgrel=1
-pkgdesc='A package manager for javascript'
-arch=('any')
-url='https://www.npmjs.com/'
-license=('custom:Artistic')
-depends=('nodejs' 'node-gyp' 'semver')
-makedepends=('procps-ng' 'marked-man')
-options=('!emptydirs')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/npm/cli/archive/v$pkgver.tar.gz")
-sha512sums=('0d94bc51fc596cafb30ee61090f54e59d32322465d11c4ec8539126683d30b33dfa186e830bce75b3111bd217cfb9d46718c5e407882430b2d19fb7a31b78791')
-
-prepare() {
-  cd cli-$pkgver
-  mkdir -p node_modules/.bin
-  ln -sf /usr/bin/marked{,-man} node_modules/.bin/
-
-  mkdir -p man/man1
-}
-
-build() {
-  cd cli-$pkgver
-  make
-}
-
-package() {
-  cd cli-$pkgver
-  make NPMOPTS="--prefix=\"$pkgdir/usr\"" install
-
-  # 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"
-
-  # Experimental dedup
-  _npmdir="$pkgdir"/usr/lib/node_modules/$pkgname
-  rm -r "$_npmdir"/node_modules/{,.bin/}semver
-  rm -r "$_npmdir"/node_modules/{,.bin/}node-gyp
-  sed -i '/node-gyp.js/c\  exec /usr/bin/node-gyp "$@"' \
-    "$_npmdir"/node_modules/npm-lifecycle/node-gyp-bin/node-gyp \
-    "$_npmdir"/bin/node-gyp-bin/node-gyp
-
-  install -dm755 "$pkgdir"/usr/share/bash-completion/completions
-  node "$srcdir"/cli-$pkgver/bin/npm-cli.js completion > "$pkgdir"/usr/share/bash-completion/completions/npm
-
-  install -Dm644 "$srcdir"/cli-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}

Copied: npm/repos/community-any/PKGBUILD (from rev 492679, npm/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-07-24 07:19:26 UTC (rev 492680)
@@ -0,0 +1,49 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=npm
+pkgver=6.10.2
+pkgrel=1
+pkgdesc='A package manager for javascript'
+arch=('any')
+url='https://www.npmjs.com/'
+license=('custom:Artistic')
+depends=('nodejs' 'node-gyp' 'semver')
+makedepends=('procps-ng' 'marked-man')
+options=('!emptydirs')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/npm/cli/archive/v$pkgver.tar.gz")
+sha512sums=('b509046bb119ea431538d529bf19f970b5331e2950a5af0d2f7b5296274cd6fa734d6f8c0b3bef992082779d6476442e062b63a89216c858b9f060fc1a5c32ea')
+
+prepare() {
+  cd cli-$pkgver
+  mkdir -p node_modules/.bin
+  ln -sf /usr/bin/marked{,-man} node_modules/.bin/
+
+  mkdir -p man/man1
+}
+
+build() {
+  cd cli-$pkgver
+  make
+}
+
+package() {
+  cd cli-$pkgver
+  make NPMOPTS="--prefix=\"$pkgdir/usr\"" install
+
+  # 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"
+
+  # Experimental dedup
+  _npmdir="$pkgdir"/usr/lib/node_modules/$pkgname
+  rm -r "$_npmdir"/node_modules/{,.bin/}semver
+  rm -r "$_npmdir"/node_modules/{,.bin/}node-gyp
+  sed -i '/node-gyp.js/c\  exec /usr/bin/node-gyp "$@"' \
+    "$_npmdir"/node_modules/npm-lifecycle/node-gyp-bin/node-gyp \
+    "$_npmdir"/bin/node-gyp-bin/node-gyp
+
+  install -dm755 "$pkgdir"/usr/share/bash-completion/completions
+  node "$srcdir"/cli-$pkgver/bin/npm-cli.js completion > "$pkgdir"/usr/share/bash-completion/completions/npm
+
+  install -Dm644 "$srcdir"/cli-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}


More information about the arch-commits mailing list