2018-02-28 23:31:47 +00:00
|
|
|
# Maintainer: Andrew Steinke <rkcf@rkcf.me>
|
|
|
|
|
|
|
|
pkgname=eslint-plugin-vue
|
2019-02-22 19:59:41 +00:00
|
|
|
pkgver=5.2.2
|
2018-02-28 23:31:47 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc='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')
|
2018-02-28 23:31:47 +00:00
|
|
|
makedepends=('npm')
|
|
|
|
source=(http://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
|
|
|
|
noextract=($pkgname-$pkgver.tgz)
|
2019-02-22 19:59:41 +00:00
|
|
|
md5sums=('e30739aef7d1b95c97dcbb8a771c925c')
|
2018-02-28 23:31:47 +00:00
|
|
|
|
|
|
|
package() {
|
2019-02-15 08:19:07 +00:00
|
|
|
npm install -g --user root --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 '{}' +
|
|
|
|
|
|
|
|
install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
|
|
ln -s ../../../lib/node_modules/$pkgname/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
|
|
}
|