[arch-commits] Commit in npm-check-updates/repos (2 files)

2017-10-02 Thread Felix Yan
Date: Tuesday, October 3, 2017 @ 02:48:19
  Author: felixonmars
Revision: 261347

archrelease: copy trunk to community-testing-any

Added:
  npm-check-updates/repos/community-testing-any/
  npm-check-updates/repos/community-testing-any/PKGBUILD
(from rev 261346, npm-check-updates/trunk/PKGBUILD)

--+
 PKGBUILD |   28 
 1 file changed, 28 insertions(+)

Copied: npm-check-updates/repos/community-testing-any/PKGBUILD (from rev 
261346, npm-check-updates/trunk/PKGBUILD)
===
--- community-testing-any/PKGBUILD  (rev 0)
+++ community-testing-any/PKGBUILD  2017-10-03 02:48:19 UTC (rev 261347)
@@ -0,0 +1,28 @@
+# $Id$
+# Maintainer: Felix Yan 
+
+pkgname=npm-check-updates
+pkgdesc='Find newer versions of dependencies than what your package.json or 
bower.json allows'
+pkgver=2.13.0
+pkgrel=1
+arch=('any')
+url='https://github.com/tjunnone/npm-check-updates'
+license=('Apache')
+depends=('semver' 'npm')
+source=(http://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
+noextract=($pkgname-$pkgver.tgz)
+sha512sums=('c2a1636dee548893b53448a41c55ff9623aaea1565cfcacd2beec232742065cc6f5444a5864feef93ecaca0d08d86fa35e1d1657f0eb3af93aa6b4328f808cdf')
+
+package() {
+  npm install -g --user root --prefix "$pkgdir"/usr 
"$srcdir"/$pkgname-$pkgver.tgz
+  rm -r "$pkgdir"/usr/etc
+
+  # Experimental dedup
+  cd "$pkgdir"/usr/lib/node_modules/$pkgname/node_modules
+  for dep in npm semver; do
+rm -r $dep;
+  done
+
+  # Fix npm derp
+  find "$pkgdir/usr" -type d -exec chmod 755 '{}' +
+}


[arch-commits] Commit in npm-check-updates/repos (2 files)

2016-11-02 Thread Felix Yan
Date: Wednesday, November 2, 2016 @ 15:19:46
  Author: felixonmars
Revision: 194498

archrelease: copy trunk to community-any

Added:
  npm-check-updates/repos/community-any/
  npm-check-updates/repos/community-any/PKGBUILD
(from rev 194497, npm-check-updates/trunk/PKGBUILD)

--+
 PKGBUILD |   28 
 1 file changed, 28 insertions(+)

Copied: npm-check-updates/repos/community-any/PKGBUILD (from rev 194497, 
npm-check-updates/trunk/PKGBUILD)
===
--- community-any/PKGBUILD  (rev 0)
+++ community-any/PKGBUILD  2016-11-02 15:19:46 UTC (rev 194498)
@@ -0,0 +1,28 @@
+# $Id$
+# Maintainer: Felix Yan 
+
+pkgname=npm-check-updates
+pkgdesc='Find newer versions of dependencies than what your package.json or 
bower.json allows'
+pkgver=2.8.6
+pkgrel=1
+arch=('any')
+url='https://github.com/tjunnone/npm-check-updates'
+license=('MIT')
+depends=('semver' 'npm')
+source=(http://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
+noextract=($pkgname-$pkgver.tgz)
+sha256sums=('3e76090fc1e7f10b0e93e8cf643836a8e103ba3ec712c0e4ef357aa62d475695')
+
+package() {
+  npm install -g --user root --prefix "$pkgdir"/usr 
"$srcdir"/$pkgname-$pkgver.tgz
+  rm -r "$pkgdir"/usr/etc
+  mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
+  ln -s "../../../lib/node_modules/$pkgname/LICENSE" 
"$pkgdir/usr/share/licenses/$pkgname/"
+
+  # Experimental dedup
+  cd "$pkgdir"/usr/lib/node_modules/$pkgname/node_modules
+  for dep in npm semver; do
+rm -r $dep;
+npm link $dep;
+  done
+}