# Maintainer: Knut Ahlers # Contributor: Andrew Steinke pkgname=eslint-plugin-vue pkgver=8.5.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=('55b054ba7daebeaa7a84e955f51e11c126bebd5413fd4ebc3128122af4c54213') 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" }