-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
29 lines (24 loc) · 1002 Bytes
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Maintainer: Knut Ahlers <knut at ahlers dot me>
pkgname=babel-eslint-plugin
pkgver=7.25.1
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")
sha256sums=('e808d29c42d59ce9afc5676e587356eabfbe7137decf2163e1f152c70a9f6247')
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"
}