[arch-commits] Commit in nodejs-grunt-cli/repos (community-any community-any/PKGBUILD)

Felix Yan fyan at archlinux.org
Fri Oct 9 05:56:12 UTC 2015


    Date: Friday, October 9, 2015 @ 07:56:12
  Author: fyan
Revision: 143475

archrelease: copy trunk to community-any

Added:
  nodejs-grunt-cli/repos/community-any/
  nodejs-grunt-cli/repos/community-any/PKGBUILD
    (from rev 143474, nodejs-grunt-cli/trunk/PKGBUILD)

----------+
 PKGBUILD |   26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

Copied: nodejs-grunt-cli/repos/community-any/PKGBUILD (from rev 143474, nodejs-grunt-cli/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2015-10-09 05:56:12 UTC (rev 143475)
@@ -0,0 +1,26 @@
+# $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>
+
+_npmname=grunt-cli
+pkgname=nodejs-$_npmname
+pkgver=0.1.13
+pkgrel=8
+pkgdesc="The grunt command line interface."
+arch=('any')
+url="http://gruntjs.com/"
+license=('MIT')
+depends=('nodejs')
+makedepends=('npm')
+source=("https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz")
+noextract=($_npmname-$pkgver.tgz)
+sha256sums=('e639404d7b66ae2821edabc681104a1f035910ff20a2e21d67329c2a7674a443')
+
+package() {
+  npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$_npmname-$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/"
+}



More information about the arch-commits mailing list