[arch-commits] Commit in grunt-cli/repos/community-any (3 files)

2018-08-20 Thread Eli Schwartz via arch-commits
Date: Monday, August 20, 2018 @ 15:03:15
  Author: eschwartz
Revision: 372878

archrelease: copy trunk to community-any

Added:
  grunt-cli/repos/community-any/PKGBUILD
(from rev 372877, grunt-cli/trunk/PKGBUILD)
Deleted:
  grunt-cli/repos/community-any/PKGBUILD
  grunt-cli/repos/community-any/grunt-cli.install

---+
 PKGBUILD  |   68 +++-
 grunt-cli.install |   10 ---
 2 files changed, 36 insertions(+), 42 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2018-08-20 15:02:55 UTC (rev 372877)
+++ PKGBUILD2018-08-20 15:03:15 UTC (rev 372878)
@@ -1,32 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan 
-# Contributor: Mario Finelli 
-# Contributor: Andy Weidenbaum 
-# Contributor: Peter Wu 
-
-pkgname=grunt-cli
-pkgver=1.3.1
-pkgrel=1
-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)
-sha512sums=('530051bbf4290230dce770d12c49328a515d2f4cde9e9c6ef9f75d4c896c17f289a9d35c1da426bf2bb55b77037ac67daeaa9974a2b903cf900c8c8b5045a865')
-
-package() {
-  npm install -g --user root --prefix "$pkgdir"/usr 
"$srcdir"/$pkgname-$pkgver.tgz
-
-  # Why 777? :/
-  chmod -R u=rwX,go=rX "$pkgdir"
-
-  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 372877, 
grunt-cli/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2018-08-20 15:03:15 UTC (rev 372878)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Mario Finelli 
+# Contributor: Andy Weidenbaum 
+# Contributor: Peter Wu 
+
+pkgname=grunt-cli
+pkgver=1.3.1
+pkgrel=2
+pkgdesc="The grunt command line interface."
+arch=('any')
+url="https://gruntjs.com/";
+license=('MIT')
+depends=('nodejs')
+makedepends=('npm')
+source=("https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz";
+
"$pkgname-$pkgver.LICENSE::https://github.com/gruntjs/grunt-cli/raw/v$pkgver/LICENSE-MIT";)
+noextract=($pkgname-$pkgver.tgz)
+sha512sums=('530051bbf4290230dce770d12c49328a515d2f4cde9e9c6ef9f75d4c896c17f289a9d35c1da426bf2bb55b77037ac67daeaa9974a2b903cf900c8c8b5045a865'
+
'e10d81276cacf81f58deca8411a4d3ab0d5213ef4829d755ea0056c0da5ccad600e3b172cdc47949b07b575cf03773f64d9e46b644f99764a051f7f3bca5f903')
+
+package() {
+  npm install -g --user root --prefix "$pkgdir"/usr 
"$srcdir"/$pkgname-$pkgver.tgz
+
+  # Non-deterministic race in npm gives 777 permissions to random directories.
+  # See https://github.com/npm/npm/issues/9359 for details.
+  chmod -R u=rwX,go=rX "$pkgdir"
+
+  # install completions properly
+ install -Dm644 "$pkgdir"/usr/lib/node_modules/grunt-cli/completion/bash \
+   "$pkgdir"/usr/share/bash-completion/completions/grunt-cli
+ install -Dm644 "$pkgdir"/usr/lib/node_modules/grunt-cli/completion/zsh \
+   "$pkgdir"/usr/share/zsh/site-functions/_grunt-cli
+
+  install -Dm644 "$srcdir"/$pkgname-$pkgver.LICENSE 
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}

Deleted: grunt-cli.install
===
--- grunt-cli.install   2018-08-20 15:02:55 UTC (rev 372877)
+++ grunt-cli.install   2018-08-20 15:03:15 UTC (rev 372878)
@@ -1,10 +0,0 @@
-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
-}


[arch-commits] Commit in grunt-cli/repos/community-any (3 files)

2016-10-25 Thread Levente Polyak
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
===
--- PKGBUILD2016-10-26 01:28:00 UTC (rev 193386)
+++ PKGBUILD2016-10-26 01:28:15 UTC (rev 193387)
@@ -1,28 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan 
-# Contributor: Mario Finelli 
-# Contributor: Andy Weidenbaum 
-# Contributor: Peter Wu 
-
-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)
+++ PKGBUILD2016-10-26 01:28:15 UTC (rev 193387)
@@ -0,0 +1,29 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Mario Finelli 
+# Contributor: Andy Weidenbaum 
+# Contributor: Peter Wu 
+
+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
+}