[arch-commits] Commit in eslint/repos (2 files)

Felix Yan felixonmars at archlinux.org
Fri Sep 29 21:37:21 UTC 2017


    Date: Friday, September 29, 2017 @ 21:37:20
  Author: felixonmars
Revision: 261107

archrelease: copy trunk to community-testing-any

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

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

Copied: eslint/repos/community-testing-any/PKGBUILD (from rev 261106, eslint/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2017-09-29 21:37:20 UTC (rev 261107)
@@ -0,0 +1,32 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=eslint
+pkgver=4.8.0
+pkgrel=1
+pkgdesc='An AST-based pattern checker for JavaScript'
+arch=('any')
+url='http://eslint.org'
+license=('MIT')
+depends=('nodejs' 'acorn')
+makedepends=('npm')
+source=("https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz")
+noextract=("$pkgname-$pkgver.tgz")
+sha512sums=('2838fac0da03616d7ef5c62e59c9181a847515b4a14ed6be0e6f854c0211e7a6dc9a9e09340aa3519f66db621879b7dfe3ea68c3fe28d0b91d8c9b69b3bb65a8')
+
+package() {
+  npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
+  rm -r "$pkgdir"/usr/etc
+
+  # Fix permissions
+  find "$pkgdir/usr" -type d -exec chmod 755 '{}' +
+
+  install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
+  ln -s ../../../lib/node_modules/eslint/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+  # Experimental dedup
+  cd "$pkgdir"/usr/lib/node_modules/$pkgname/node_modules
+  for dep in acorn; do
+    rm -r $dep;
+  done
+}



More information about the arch-commits mailing list