[arch-commits] Commit in npm-check-updates/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Jun 10 21:42:01 UTC 2021
Date: Thursday, June 10, 2021 @ 21:42:01
Author: felixonmars
Revision: 961794
archrelease: copy trunk to community-any
Added:
npm-check-updates/repos/community-any/PKGBUILD
(from rev 961793, npm-check-updates/trunk/PKGBUILD)
Deleted:
npm-check-updates/repos/community-any/PKGBUILD
----------+
PKGBUILD | 60 +++++++++++++++++++++++++++++-------------------------------
1 file changed, 29 insertions(+), 31 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-06-10 21:41:50 UTC (rev 961793)
+++ PKGBUILD 2021-06-10 21:42:01 UTC (rev 961794)
@@ -1,31 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=npm-check-updates
-pkgdesc='Find newer versions of dependencies than what your package.json or bower.json allows'
-pkgver=11.6.0
-pkgrel=1
-arch=('any')
-url='https://github.com/tjunnone/npm-check-updates'
-license=('Apache')
-depends=('npm' 'semver')
-source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
-noextract=($pkgname-$pkgver.tgz)
-sha512sums=('fe5e12ec687ef3e460e62b56b2a1726b9451487b4fcf0e677b20256d63497c17c47915fa9585712a0b3ce5014138aad98f778be4c1816945bcdb6f139a3321af')
-
-package() {
- npm install -g --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
-
- # Experimental dedup
- cd "$pkgdir"/usr/lib/node_modules/$pkgname/node_modules
- for dep in semver; do
- rm -r $dep;
- done
-
- # 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"
-}
Copied: npm-check-updates/repos/community-any/PKGBUILD (from rev 961793, npm-check-updates/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-06-10 21:42:01 UTC (rev 961794)
@@ -0,0 +1,29 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=npm-check-updates
+pkgdesc='Find newer versions of dependencies than what your package.json or bower.json allows'
+pkgver=11.6.0
+pkgrel=2
+arch=('any')
+url='https://github.com/tjunnone/npm-check-updates'
+license=('Apache')
+depends=('nodejs-nopt' 'npm' 'semver')
+source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
+noextract=($pkgname-$pkgver.tgz)
+sha512sums=('fe5e12ec687ef3e460e62b56b2a1726b9451487b4fcf0e677b20256d63497c17c47915fa9585712a0b3ce5014138aad98f778be4c1816945bcdb6f139a3321af')
+
+package() {
+ npm install -g --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
+
+ # Experimental dedup
+ rm -r "$pkgdir"/usr/lib/node_modules/$pkgname/node_modules/{,.bin/}nopt
+ rm -r "$pkgdir"/usr/lib/node_modules/$pkgname/node_modules/{,.bin/}semver
+
+ # 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"
+}
More information about the arch-commits
mailing list