[arch-commits] Commit in pm2/trunk (PKGBUILD)
Felix Yan
fyan at archlinux.org
Sun Feb 14 02:54:02 UTC 2016
Date: Sunday, February 14, 2016 @ 03:54:02
Author: fyan
Revision: 161502
upgpkg: pm2 1.0.1-1
Modified:
pm2/trunk/PKGBUILD
----------+
PKGBUILD | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-02-14 02:39:14 UTC (rev 161501)
+++ PKGBUILD 2016-02-14 02:54:02 UTC (rev 161502)
@@ -2,18 +2,18 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
pkgname=pm2
-pkgver=1.0.0
+pkgver=1.0.1
pkgrel=1
pkgdesc='Production process manager for Node.JS applications with a built-in load balancer'
arch=('any')
url='http://pm2.keymetrics.io'
license=('AGPL3')
-depends=('nodejs')
+depends=('nodejs' 'coffee-script')
makedepends=('npm' 'git')
source=(http://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz
pm2.service)
noextract=($pkgname-$pkgver.tgz)
-md5sums=('29b5d4623c101e2c2d7d4c68d619cc31'
+md5sums=('ef9f89299ae6f8259ae76702445b24b2'
'2f3ffbb78aa64d262d99168c5380b472')
package() {
@@ -20,4 +20,11 @@
npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
install -Dm644 pm2.service "$pkgdir"/usr/lib/systemd/system/pm2.service
rm -r "$pkgdir"/usr/etc
+
+ # Experimental dedup
+ cd "$pkgdir"/usr/lib/node_modules/$pkgname/node_modules
+ for dep in coffee-script; do
+ rm -r $dep;
+ npm link $dep;
+ done
}
More information about the arch-commits
mailing list