[arch-commits] Commit in npm/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at gemini.archlinux.org
Wed Jun 29 14:00:05 UTC 2022
Date: Wednesday, June 29, 2022 @ 14:00:05
Author: felixonmars
Revision: 1240490
archrelease: copy trunk to community-any
Added:
npm/repos/community-any/PKGBUILD
(from rev 1240489, npm/trunk/PKGBUILD)
Deleted:
npm/repos/community-any/PKGBUILD
----------+
PKGBUILD | 116 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 58 insertions(+), 58 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-06-29 13:59:52 UTC (rev 1240489)
+++ PKGBUILD 2022-06-29 14:00:05 UTC (rev 1240490)
@@ -1,58 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=npm
-pkgver=8.7.0
-pkgrel=1
-pkgdesc='A package manager for javascript'
-arch=('any')
-url='https://www.npmjs.com/'
-license=('custom:Artistic')
-depends=('nodejs' 'node-gyp' 'nodejs-nopt' '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' 'procps-ng' 'python')
-options=('!emptydirs')
-source=("https://github.com/npm/cli/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('c73b0105b3d6659d3d9c0cde4a4a012c1433aab84a5843aaa1eb1995a4b0b2ec8aa88b98de652b030bd47dc85ff074efe157ea371e1b690eb855bcff6f85cf96')
-
-prepare() {
- cd cli-$pkgver
- # 'deps' was added as a dep for many Makefile targets since 8.6 but it's not easy to fix.
- # Let's skip and do it ourselves instead.
- sed -i 's|node bin/npm-cli.js run resetdeps|true|' Makefile
-}
-
-build() {
- cd cli-$pkgver
- node . i --ignore-scripts --no-audit --no-fund
- NODE_PATH=/usr/lib/node_modules make
-}
-
-package() {
- cd cli-$pkgver
- node bin/npm-cli.js install -g -f --prefix="$pkgdir/usr" $(node bin/npm-cli.js pack | tail -1)
-
- # 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
- rm -r "$_npmdir"/node_modules/{,.bin/}nopt
- sed -i 's|../../node_modules/node-gyp/bin/node-gyp.js|../../../node-gyp/bin/node-gyp.js|' \
- "$_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
-
- mv "$pkgdir"/usr/lib/node_modules/npm/man "$pkgdir"/usr/share/
-
- install -Dm644 "$srcdir"/cli-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
-}
Copied: npm/repos/community-any/PKGBUILD (from rev 1240489, npm/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-06-29 14:00:05 UTC (rev 1240490)
@@ -0,0 +1,58 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=npm
+pkgver=8.8.0
+pkgrel=1
+pkgdesc='A package manager for javascript'
+arch=('any')
+url='https://www.npmjs.com/'
+license=('custom:Artistic')
+depends=('nodejs' 'node-gyp' 'nodejs-nopt' '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' 'procps-ng' 'python')
+options=('!emptydirs')
+source=("https://github.com/npm/cli/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('85d3c11345bb0d584089cdf7b4ae3c2773a69258f0bc8833d1bef3c3f554583c9c93b1e4a42ce7a8821c5b38b92ec05314184466dc62fd7cf0b9f421f8200352')
+
+prepare() {
+ cd cli-$pkgver
+ # 'deps' was added as a dep for many Makefile targets since 8.6 but it's not easy to fix.
+ # Let's skip and do it ourselves instead.
+ sed -i 's|node bin/npm-cli.js run resetdeps|true|' Makefile
+}
+
+build() {
+ cd cli-$pkgver
+ node . i --ignore-scripts --no-audit --no-fund
+ NODE_PATH=/usr/lib/node_modules make
+}
+
+package() {
+ cd cli-$pkgver
+ node bin/npm-cli.js install -g -f --prefix="$pkgdir/usr" $(node bin/npm-cli.js pack | tail -1)
+
+ # 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
+ rm -r "$_npmdir"/node_modules/{,.bin/}nopt
+ sed -i 's|../../node_modules/node-gyp/bin/node-gyp.js|../../../node-gyp/bin/node-gyp.js|' \
+ "$_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
+
+ mv "$pkgdir"/usr/lib/node_modules/npm/man "$pkgdir"/usr/share/
+
+ install -Dm644 "$srcdir"/cli-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
More information about the arch-commits
mailing list