[arch-commits] Commit in eslint/repos (community-any community-any/PKGBUILD)

Felix Yan fyan at archlinux.org
Sat Jan 23 06:55:17 UTC 2016


    Date: Saturday, January 23, 2016 @ 07:55:17
  Author: fyan
Revision: 158658

archrelease: copy trunk to community-any

Added:
  eslint/repos/community-any/
  eslint/repos/community-any/PKGBUILD
    (from rev 158657, eslint/trunk/PKGBUILD)

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

Copied: eslint/repos/community-any/PKGBUILD (from rev 158657, eslint/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2016-01-23 06:55:17 UTC (rev 158658)
@@ -0,0 +1,23 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=eslint
+pkgver=1.10.3
+pkgrel=1
+pkgdesc='An AST-based pattern checker for JavaScript'
+arch=('any')
+url='http://eslint.org'
+license=('MIT')
+depends=('nodejs')
+makedepends=('npm')
+source=(http://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
+noextract=($pkgname-$pkgver.tgz)
+md5sums=('24547e5fd17ae5f5dc6b0284f1ae95fa')
+
+package() {
+  npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
+  rm -r "$pkgdir"/usr/etc
+
+  install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
+  ln -s ../../../lib/node_modules/eslint/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list