[arch-commits] Commit in grunt-cli/repos/community-any (3 files)
Levente Polyak
anthraxx at archlinux.org
Wed Oct 26 01:28:15 UTC 2016
Date: Wednesday, October 26, 2016 @ 01:28:15
Author: anthraxx
Revision: 193387
archrelease: copy trunk to community-any
Added:
grunt-cli/repos/community-any/PKGBUILD
(from rev 193386, grunt-cli/trunk/PKGBUILD)
grunt-cli/repos/community-any/grunt-cli.install
(from rev 193386, grunt-cli/trunk/grunt-cli.install)
Deleted:
grunt-cli/repos/community-any/PKGBUILD
-------------------+
PKGBUILD | 57 ++++++++++++++++++++++++++--------------------------
grunt-cli.install | 10 +++++++++
2 files changed, 39 insertions(+), 28 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2016-10-26 01:28:00 UTC (rev 193386)
+++ PKGBUILD 2016-10-26 01:28:15 UTC (rev 193387)
@@ -1,28 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Mario Finelli <mario dot finelli at yahoo dot com>
-# Contributor: Andy Weidenbaum <archbaum at gmail dot com>
-# Contributor: Peter Wu <lekensteyn at gmail dot com>
-
-pkgname=grunt-cli
-pkgver=1.2.0
-pkgrel=2
-pkgdesc="The grunt command line interface."
-arch=('any')
-url="http://gruntjs.com/"
-license=('MIT')
-depends=('nodejs')
-makedepends=('npm')
-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"/$pkgname-$pkgver.tgz
- rm -r "$pkgdir"/usr/etc
- mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
- ln -s "../../../lib/node_modules/$pkgname/LICENSE-MIT" "$pkgdir/usr/share/licenses/$pkgname/"
-}
Copied: grunt-cli/repos/community-any/PKGBUILD (from rev 193386, grunt-cli/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2016-10-26 01:28:15 UTC (rev 193387)
@@ -0,0 +1,29 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Mario Finelli <mario dot finelli at yahoo dot com>
+# Contributor: Andy Weidenbaum <archbaum at gmail dot com>
+# Contributor: Peter Wu <lekensteyn at gmail dot com>
+
+pkgname=grunt-cli
+pkgver=1.2.0
+pkgrel=2
+pkgdesc="The grunt command line interface."
+arch=('any')
+url="http://gruntjs.com/"
+license=('MIT')
+depends=('nodejs')
+makedepends=('npm')
+provides=('nodejs-grunt-cli')
+conflicts=('nodejs-grunt-cli')
+replaces=('nodejs-grunt-cli')
+install=${pkgname}.install
+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"/$pkgname-$pkgver.tgz
+ rm -r "$pkgdir"/usr/etc
+ mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
+ ln -s "../../../lib/node_modules/$pkgname/LICENSE-MIT" "$pkgdir/usr/share/licenses/$pkgname/"
+}
Copied: grunt-cli/repos/community-any/grunt-cli.install (from rev 193386, grunt-cli/trunk/grunt-cli.install)
===================================================================
--- grunt-cli.install (rev 0)
+++ grunt-cli.install 2016-10-26 01:28:15 UTC (rev 193387)
@@ -0,0 +1,10 @@
+post_install() {
+ # fixup permissions
+ chmod 755 /usr/lib/node_modules \
+ /usr/lib/node_modules/grunt-cli/node_modules \
+ /usr/lib/node_modules/grunt-cli/node_modules/.bin
+}
+
+post_upgrade() {
+ post_install
+}
More information about the arch-commits
mailing list