From 0878ead3e19a689e7e33d2889df03d949483a281 Mon Sep 17 00:00:00 2001 From: rkcf Date: Wed, 28 Feb 2018 18:31:47 -0500 Subject: [PATCH] add PKGBUILD for eslint-plugin-vue 4.3.0 --- .SRCINFO | 16 ++++++++++++++++ PKGBUILD | 25 +++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..e05f02b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = eslint-plugin-vue + pkgdesc = ESLint Plugin for Vue.js + pkgver = 4.3.0 + pkgrel = 1 + url = https://github.com/vuejs/eslint-plugin-vue + arch = any + license = MIT + makedepends = npm + depends = nodejs + depends = eslint + noextract = eslint-plugin-vue-4.3.0.tgz + source = http://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-4.3.0.tgz + md5sums = ce3b968076f310f617d5313e96242517 + +pkgname = eslint-plugin-vue + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..75957bb --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Andrew Steinke + +pkgname=eslint-plugin-vue +pkgver=4.3.0 +pkgrel=1 +pkgdesc='ESLint Plugin for Vue.js' +arch=('any') +url='https://github.com/vuejs/eslint-plugin-vue' +license=('MIT') +depends=('nodejs' 'eslint') +makedepends=('npm') +source=(http://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz) +noextract=($pkgname-$pkgver.tgz) +md5sums=('ce3b968076f310f617d5313e96242517') + +package() { + npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz + rm -r "$pkgdir"/usr/etc + + # 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" +}