Date: Saturday, July 21, 2018 @ 07:05:23 Author: felixonmars Revision: 362663
archrelease: copy trunk to community-any Added: eslint/repos/community-any/PKGBUILD (from rev 362662, eslint/trunk/PKGBUILD) Deleted: eslint/repos/community-any/PKGBUILD ----------+ PKGBUILD | 62 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 31 insertions(+), 31 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-07-21 07:04:51 UTC (rev 362662) +++ PKGBUILD 2018-07-21 07:05:23 UTC (rev 362663) @@ -1,31 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgname=eslint -pkgver=5.1.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=('0f21fa26ca00d4acc0e7e3925858e0e7a0c5253fac0cb3b4ca891a3d9f6a634504998acf0358045ff1b53275649910ec92c1b81f57e8215cf66575ccde11d8bf') - -package() { - npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz - - # 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 -} Copied: eslint/repos/community-any/PKGBUILD (from rev 362662, eslint/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-07-21 07:05:23 UTC (rev 362663) @@ -0,0 +1,31 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=eslint +pkgver=5.2.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=('ce58205b5aa9eff4c18f02dfa2e46863b7965eb5f025916a09d231c61d3f2d507f42eb8ab88324cf251911c0e8e8b05a76caf2e4970433122a7771ffeba09756') + +package() { + npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz + + # 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 +}