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

Eli Schwartz eschwartz at archlinux.org
Mon Aug 20 15:03:15 UTC 2018


    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
===================================================================
--- PKGBUILD	2018-08-20 15:02:55 UTC (rev 372877)
+++ PKGBUILD	2018-08-20 15:03:15 UTC (rev 372878)
@@ -1,32 +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.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)
+++ PKGBUILD	2018-08-20 15:03:15 UTC (rev 372878)
@@ -0,0 +1,36 @@
+# $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.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
-}



More information about the arch-commits mailing list