mirror of
https://github.com/luzifer-aur/eslint-plugin-vue.git
synced 2024-12-20 16:11:17 +00:00
30 lines
956 B
Bash
30 lines
956 B
Bash
# Maintainer: Knut Ahlers <knut at ahlers dot me>
|
|
# Contributor: Andrew Steinke <rkcf@rkcf.me>
|
|
|
|
pkgname=eslint-plugin-vue
|
|
pkgver=9.12.0
|
|
pkgrel=1
|
|
pkgdesc='Official ESLint plugin for Vue.js'
|
|
arch=('any')
|
|
url='https://github.com/vuejs/eslint-plugin-vue'
|
|
license=('MIT')
|
|
depends=('eslint')
|
|
makedepends=('npm')
|
|
source=("http://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz")
|
|
sha256sums=('d800ef7376cb594fa5a434f5b6d286dabc13bf637c8bcd7a08a5f18bff537565')
|
|
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"
|
|
}
|