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

Felix Yan felixonmars at archlinux.org
Tue Oct 3 02:48:20 UTC 2017


    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 <felixonmars at archlinux.org>
+
+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 '{}' +
+}



More information about the arch-commits mailing list