eslint-plugin-vue/PKGBUILD

31 lines
956 B
Bash
Raw Normal View History

# Maintainer: Knut Ahlers <knut at ahlers dot me>
# Contributor: Andrew Steinke <rkcf@rkcf.me>
pkgname=eslint-plugin-vue
2023-07-31 01:07:06 +00:00
pkgver=9.16.1
2021-05-29 02:42:09 +00:00
pkgrel=1
pkgdesc='Official ESLint plugin for Vue.js'
arch=('any')
url='https://github.com/vuejs/eslint-plugin-vue'
license=('MIT')
2019-02-15 08:19:07 +00:00
depends=('eslint')
makedepends=('npm')
2020-12-28 16:12:06 +00:00
source=("http://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz")
2023-07-31 01:07:06 +00:00
sha256sums=('fa7dd810d3cc6d94a4c0e537be19cfbbaa5555011a15f104384dd46f9dabbff7')
noextract=($pkgname-$pkgver.tgz)
package() {
install -dm 755 "$pkgdir/usr/lib"
npm install -g --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"
install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
ln -s ../../../lib/node_modules/$pkgname/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}