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

Felix Yan felixonmars at archlinux.org
Wed Nov 2 15:19:46 UTC 2016


    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 <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.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
+}



More information about the arch-commits mailing list