[arch-commits] Commit in npm-check-updates/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Tue Oct 8 21:50:55 UTC 2019
Date: Tuesday, October 8, 2019 @ 21:50:55
Author: felixonmars
Revision: 514282
archrelease: copy trunk to community-any
Added:
npm-check-updates/repos/community-any/PKGBUILD
(from rev 514281, npm-check-updates/trunk/PKGBUILD)
Deleted:
npm-check-updates/repos/community-any/PKGBUILD
----------+
PKGBUILD | 59 ++++++++++++++++++++++++++++++++---------------------------
1 file changed, 32 insertions(+), 27 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-08 21:50:51 UTC (rev 514281)
+++ PKGBUILD 2019-10-08 21:50:55 UTC (rev 514282)
@@ -1,27 +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=3.1.23
-pkgrel=1
-arch=('any')
-url='https://github.com/tjunnone/npm-check-updates'
-license=('Apache')
-depends=('semver')
-makedepends=('npm')
-source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
-noextract=($pkgname-$pkgver.tgz)
-sha512sums=('67676431d360b9ee8e3e44033dc00aeb642bc2ff86d4f68498aac3aeb4808923fba510f7bb7d31395cb59cbba44b55eb276ff317c5d357115ef7fb9b72f95c3d')
-
-package() {
- npm install -g --user root --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
-
- # Fix npm derp
- find "$pkgdir/usr" -type d -exec chmod 755 '{}' +
-}
Copied: npm-check-updates/repos/community-any/PKGBUILD (from rev 514281, npm-check-updates/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-10-08 21:50:55 UTC (rev 514282)
@@ -0,0 +1,32 @@
+# 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=3.1.24
+pkgrel=1
+arch=('any')
+url='https://github.com/tjunnone/npm-check-updates'
+license=('Apache')
+depends=('semver')
+makedepends=('npm')
+source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
+noextract=($pkgname-$pkgver.tgz)
+sha512sums=('f02c655ec48fa3c4420071eac9cc54f60703712928048d08d9b921dfb1c9af2d95261a86c5e567115abcbed15c8a0cc846b5206d23b22a04a6fa3beede8a2433')
+
+package() {
+ npm install -g --user root --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"
+}
More information about the arch-commits
mailing list