2021-04-13 22:32:41 +00:00
|
|
|
# Maintainer: Knut Ahlers <knut at ahlers dot me>
|
|
|
|
# Contributor: Andrew Steinke <rkcf@rkcf.me>
|
2018-02-28 23:31:47 +00:00
|
|
|
|
|
|
|
pkgname=eslint-plugin-vue
|
2024-03-25 11:37:07 +00:00
|
|
|
pkgver=9.24.0
|
2021-05-29 02:42:09 +00:00
|
|
|
pkgrel=1
|
2021-04-14 22:32:00 +00:00
|
|
|
pkgdesc='Official ESLint plugin for Vue.js'
|
2018-02-28 23:31:47 +00:00
|
|
|
arch=('any')
|
|
|
|
url='https://github.com/vuejs/eslint-plugin-vue'
|
|
|
|
license=('MIT')
|
2019-02-15 08:19:07 +00:00
|
|
|
depends=('eslint')
|
2018-02-28 23:31:47 +00:00
|
|
|
makedepends=('npm')
|
2020-12-28 16:12:06 +00:00
|
|
|
source=("http://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz")
|
2024-03-25 11:37:07 +00:00
|
|
|
sha256sums=('bef0def30c3deaf7994293c0cc4aa46ad4ddc4d0b9a90c68ef0d81614b5c3a72')
|
2018-02-28 23:31:47 +00:00
|
|
|
noextract=($pkgname-$pkgver.tgz)
|
|
|
|
|
|
|
|
package() {
|
2021-04-13 22:32:41 +00:00
|
|
|
install -dm 755 "$pkgdir/usr/lib"
|
2021-04-14 15:01:24 +00:00
|
|
|
npm install -g --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
|
2018-02-28 23:31:47 +00:00
|
|
|
|
|
|
|
# Fix permissions
|
|
|
|
find "$pkgdir/usr" -type d -exec chmod 755 '{}' +
|
|
|
|
|
2021-04-13 22:32:41 +00:00
|
|
|
# Remove files that conflict with `eslint`:
|
2021-04-14 22:19:23 +00:00
|
|
|
rm -rf "$pkgdir/usr/lib/node_modules/eslint"
|
|
|
|
rm -rf "$pkgdir/usr/bin"
|
2021-04-13 22:32:41 +00:00
|
|
|
|
2018-02-28 23:31:47 +00:00
|
|
|
install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
|
|
ln -s ../../../lib/node_modules/$pkgname/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
|
|
}
|