[arch-commits] Commit in (4 files)
Felix Yan
felixonmars at archlinux.org
Wed Nov 2 15:19:24 UTC 2016
Date: Wednesday, November 2, 2016 @ 15:19:23
Author: felixonmars
Revision: 194497
addpkg: npm-check-updates 2.8.6-1
Added:
npm-check-updates/
npm-check-updates/repos/
npm-check-updates/trunk/
npm-check-updates/trunk/PKGBUILD
----------+
PKGBUILD | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
Added: npm-check-updates/trunk/PKGBUILD
===================================================================
--- npm-check-updates/trunk/PKGBUILD (rev 0)
+++ npm-check-updates/trunk/PKGBUILD 2016-11-02 15:19:23 UTC (rev 194497)
@@ -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
+}
Property changes on: npm-check-updates/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list