[arch-commits] Commit in grunt-cli/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Tue Oct 25 06:40:41 UTC 2016
Date: Tuesday, October 25, 2016 @ 06:40:41
Author: felixonmars
Revision: 193250
upgpkg: grunt-cli 1.2.0-2
Modified:
grunt-cli/trunk/PKGBUILD
----------+
PKGBUILD | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-10-25 06:39:22 UTC (rev 193249)
+++ PKGBUILD 2016-10-25 06:40:41 UTC (rev 193250)
@@ -4,10 +4,9 @@
# Contributor: Andy Weidenbaum <archbaum at gmail dot com>
# Contributor: Peter Wu <lekensteyn at gmail dot com>
-_npmname=grunt-cli
-pkgname=nodejs-$_npmname
+pkgname=grunt-cli
pkgver=1.2.0
-pkgrel=1
+pkgrel=2
pkgdesc="The grunt command line interface."
arch=('any')
url="http://gruntjs.com/"
@@ -14,13 +13,16 @@
license=('MIT')
depends=('nodejs')
makedepends=('npm')
-source=("https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz")
-noextract=($_npmname-$pkgver.tgz)
+provides=('nodejs-grunt-cli')
+conflicts=('nodejs-grunt-cli')
+replaces=('nodejs-grunt-cli')
+source=("https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz")
+noextract=($pkgname-$pkgver.tgz)
sha256sums=('fdb1d4bd83435b3f70614b608e0027a0d75ebfda151396bb99c46405334a01d8')
package() {
- npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$_npmname-$pkgver.tgz
+ 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/$_npmname/LICENSE-MIT" "$pkgdir/usr/share/licenses/$pkgname/"
+ ln -s "../../../lib/node_modules/$pkgname/LICENSE-MIT" "$pkgdir/usr/share/licenses/$pkgname/"
}
More information about the arch-commits
mailing list