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

Felix Yan felixonmars at archlinux.org
Thu Aug 30 16:11:37 UTC 2018


    Date: Thursday, August 30, 2018 @ 16:11:36
  Author: felixonmars
Revision: 375488

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   94 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 47 insertions(+), 47 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-08-30 16:11:20 UTC (rev 375487)
+++ PKGBUILD	2018-08-30 16:11:36 UTC (rev 375488)
@@ -1,47 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=npm
-pkgver=6.4.0
-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=('d51eee17a7a25802b2047ed0d12a3e7bed396d0a6c018065dcf6859d2aeba9677804aa9e30820f9aedfe6a1f3345efc89b7722de01268f19c00fb5d2032abc7b')
-
-prepare() {
-  cd cli-$pkgver
-  ln -sf /usr/bin/marked{,-man} node_modules/.bin/
-}
-
-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 375487, npm/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-08-30 16:11:36 UTC (rev 375488)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=npm
+pkgver=6.4.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=('a43e1ce34bd1107fffb2bf3d08448ea30c1c1342caa3f0f181d28f057b3a1069a4e2decf23f0c6f740c20a2e0a5abe15f2c1eec019c9b59f13a7fe457bb64abb')
+
+prepare() {
+  cd cli-$pkgver
+  ln -sf /usr/bin/marked{,-man} node_modules/.bin/
+}
+
+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