From ae23a325f19a8bc11b59ce65061d30d708dc044d Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Wed, 14 Apr 2021 00:32:41 +0200 Subject: [PATCH] Fix collision with eslint community package Signed-off-by: Knut Ahlers --- PKGBUILD | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 183f369..79aeb41 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,4 +1,5 @@ -# Maintainer: Andrew Steinke +# Maintainer: Knut Ahlers +# Contributor: Andrew Steinke pkgname=eslint-plugin-vue pkgver=7.4.0 @@ -14,11 +15,16 @@ md5sums=('05c97697784db7c06b9beec2e0b7c573') noextract=($pkgname-$pkgver.tgz) package() { - npm install --verbose -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz + install -dm 755 "$pkgdir/usr/lib" + npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$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/eslint" + install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}" ln -s ../../../lib/node_modules/$pkgname/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }