2021-11-14 15:06:58 +00:00
|
|
|
# Maintainer: Knut Ahlers <knut at ahlers dot me>
|
|
|
|
|
|
|
|
pkgname=babel-eslint-plugin
|
2024-10-22 15:29:09 +00:00
|
|
|
pkgver=7.25.9
|
2021-11-14 15:06:58 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc='@babel/eslint-parser allows you to lint ALL valid Babel code with the fantastic ESLint'
|
|
|
|
arch=('any')
|
|
|
|
url='https://github.com/babel/babel'
|
|
|
|
license=('MIT')
|
|
|
|
depends=('eslint')
|
|
|
|
makedepends=('npm')
|
|
|
|
source=("https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-${pkgver}.tgz")
|
2024-10-22 15:29:09 +00:00
|
|
|
sha256sums=('ff36b9fb2daaf23e75acb9b173df6d5727161d44a952465f500f4c958ac232cf')
|
2021-11-14 15:06:58 +00:00
|
|
|
noextract=("eslint-parser-${pkgver}.tgz")
|
|
|
|
|
|
|
|
package() {
|
|
|
|
install -dm 755 "$pkgdir/usr/lib"
|
|
|
|
npm install -g --prefix "$pkgdir"/usr "$srcdir"/eslint-parser-${pkgver}.tgz
|
|
|
|
|
|
|
|
# Fix permissions
|
|
|
|
find "$pkgdir/usr" -type d -exec chmod 755 '{}' +
|
|
|
|
|
|
|
|
# Remove files that conflict with `eslint`:
|
|
|
|
rm -rf "$pkgdir/usr/lib/node_modules/eslint"
|
|
|
|
rm -rf "$pkgdir/usr/bin"
|
|
|
|
|
|
|
|
install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
|
|
ln -s ../../../lib/node_modules/@babel/eslint-parser/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
|
|
}
|