[arch-commits] Commit in npm/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Oct 10 19:55:57 UTC 2019
Date: Thursday, October 10, 2019 @ 19:55:57
Author: felixonmars
Revision: 514510
archrelease: copy trunk to community-any
Added:
npm/repos/community-any/PKGBUILD
(from rev 514509, npm/trunk/PKGBUILD)
Deleted:
npm/repos/community-any/PKGBUILD
----------+
PKGBUILD | 106 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 53 insertions(+), 53 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-10 19:55:53 UTC (rev 514509)
+++ PKGBUILD 2019-10-10 19:55:57 UTC (rev 514510)
@@ -1,53 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=npm
-pkgver=6.11.3
-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=('191c637040cce72a029ec17ff5ba2865aafd5c1b024e81bf5ed6885788b3fc5ce90cb49ae2c44c9c5016bdc0999bf2f5d3c1208ee54e3355da0ee8d62d623d17')
-
-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"
-
- # 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 514509, npm/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-10-10 19:55:57 UTC (rev 514510)
@@ -0,0 +1,53 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=npm
+pkgver=6.12.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=('9199f441a6feb6b2184717c7c949dc13f8b5c7af88b924626348248d64dd4ae00be84a7dfb8f0654e057c2a90323ba3d18697d99bf78b447c3f3abbea6a8b56a')
+
+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"
+
+ # 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