Date: Saturday, December 19, 2020 @ 08:58:19 Author: felixonmars Revision: 779779
archrelease: copy trunk to community-any Added: eslint/repos/community-any/PKGBUILD (from rev 779778, eslint/trunk/PKGBUILD) Deleted: eslint/repos/community-any/PKGBUILD ----------+ PKGBUILD | 70 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 35 insertions(+), 35 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-12-19 08:58:07 UTC (rev 779778) +++ PKGBUILD 2020-12-19 08:58:19 UTC (rev 779779) @@ -1,35 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgname=eslint -pkgver=7.15.0 -pkgrel=1 -pkgdesc='An AST-based pattern checker for JavaScript' -arch=('any') -url='https://eslint.org' -license=('MIT') -depends=('nodejs' 'acorn') -makedepends=('npm') -source=("https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz") -noextract=("$pkgname-$pkgver.tgz") -sha512sums=('56beb8c450d3f30df4c05965eb8ddeedc1ab2243c4539d32222237e8e752203a121a0b8879a2f3068d2fa46bf3a3d444094aaaee1b5445fc04b4aab0cad92acc') - -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" - - # npm installs package.json owned by build user - # https://bugs.archlinux.org/task/63396 - chown -R root:root "$pkgdir" - - 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 779778, eslint/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-12-19 08:58:19 UTC (rev 779779) @@ -0,0 +1,35 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=eslint +pkgver=7.16.0 +pkgrel=1 +pkgdesc='An AST-based pattern checker for JavaScript' +arch=('any') +url='https://eslint.org' +license=('MIT') +depends=('nodejs' 'acorn') +makedepends=('npm') +source=("https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz") +noextract=("$pkgname-$pkgver.tgz") +sha512sums=('89558f4bbf3946e0c0e1d5ae8618174cdac6c471caddaf072d230181b6d4e7daee243b9b52b69737c379ae7ee46fcb46eac8e0ef8784d110376164f9d5ebac13') + +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" + + # npm installs package.json owned by build user + # https://bugs.archlinux.org/task/63396 + chown -R root:root "$pkgdir" + + 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 +}