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

Felix Yan felixonmars at archlinux.org
Tue Aug 18 07:41:12 UTC 2020


    Date: Tuesday, August 18, 2020 @ 07:41:11
  Author: felixonmars
Revision: 683742

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |  124 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 62 insertions(+), 62 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-08-18 07:40:56 UTC (rev 683741)
+++ PKGBUILD	2020-08-18 07:41:11 UTC (rev 683742)
@@ -1,62 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=npm
-pkgver=6.14.7
-pkgrel=1
-pkgdesc='A package manager for javascript'
-arch=('any')
-url='https://www.npmjs.com/'
-license=('custom:Artistic')
-depends=('nodejs' 'node-gyp' 'semver')
-# libgl: TODO
-# libvips: for sharp (doc build) (disabled as current version of gatsby imports a broken sharp)
-# libxi: for cwebp (doc build)
-makedepends=('libgl' 'libxi' 'marked' 'marked-man' 'procps-ng' 'python')
-options=('!emptydirs')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/npm/cli/archive/v$pkgver.tar.gz")
-sha512sums=('d4222cdad566d3a01aca6f87e4fe4870060736657e9ca7b68b082690abc77c58fee2ed0e6c75a3ccb38c2b83a328054b6cf179d9a6e3e67dc6c66791d2d1fa88')
-
-prepare() {
-  cd cli-$pkgver
-  mkdir -p node_modules/.bin
-  ln -sf /usr/bin/marked{,-man} node_modules/.bin/
-
-  # Use local marked/marked-man
-  sed -i 's|node bin/npm-cli.js install marked|true |' Makefile
-
-  # Don't build twice
-  sed -i 's/install: all/install:/' Makefile
-
-  mkdir -p man/man1
-}
-
-build() {
-  cd cli-$pkgver
-  NODE_PATH=/usr/lib/node_modules 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"
-
-  # npm installs package.json owned by build user
-  # https://bugs.archlinux.org/task/63396
-  chown -R root:root "$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 683741, npm/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-08-18 07:41:11 UTC (rev 683742)
@@ -0,0 +1,62 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=npm
+pkgver=6.14.8
+pkgrel=1
+pkgdesc='A package manager for javascript'
+arch=('any')
+url='https://www.npmjs.com/'
+license=('custom:Artistic')
+depends=('nodejs' 'node-gyp' 'semver')
+# libgl: TODO
+# libvips: for sharp (doc build) (disabled as current version of gatsby imports a broken sharp)
+# libxi: for cwebp (doc build)
+makedepends=('libgl' 'libxi' 'marked' 'marked-man' 'procps-ng' 'python')
+options=('!emptydirs')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/npm/cli/archive/v$pkgver.tar.gz")
+sha512sums=('e5a77fc9130443dd96713129d5764e2afc185efda9f7e6465505c0619c146ce571e28c855913ad43fd11ebe6b0080822e29632f8f50c182fb4b05f2478c62a9d')
+
+prepare() {
+  cd cli-$pkgver
+  mkdir -p node_modules/.bin
+  ln -sf /usr/bin/marked{,-man} node_modules/.bin/
+
+  # Use local marked/marked-man
+  sed -i 's|node bin/npm-cli.js install marked|true |' Makefile
+
+  # Don't build twice
+  sed -i 's/install: all/install:/' Makefile
+
+  mkdir -p man/man1
+}
+
+build() {
+  cd cli-$pkgver
+  NODE_PATH=/usr/lib/node_modules 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"
+
+  # npm installs package.json owned by build user
+  # https://bugs.archlinux.org/task/63396
+  chown -R root:root "$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