summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Emnace2018-08-19 17:26:11 +0800
committerIan Emnace2018-08-28 13:24:02 +0800
commit562f0c059cca8892eb63cb63abbd66d137ff673c (patch)
tree46ac9773788ba1ba5aa8be5d3322f90dc58180fd
downloadaur-562f0c059cca8892eb63cb63abbd66d137ff673c.tar.gz
Initial commit
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD24
2 files changed, 40 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..222d5beda0b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = babel-eslint
+ pkgdesc = Custom parser for ESLint
+ pkgver = 9.0.0
+ pkgrel = 1
+ url = https://github.com/babel/babel-eslint
+ arch = any
+ license = MIT
+ makedepends = npm
+ depends = nodejs
+ depends = eslint
+ noextract = babel-eslint-9.0.0.tgz
+ source = http://registry.npmjs.org/babel-eslint/-/babel-eslint-9.0.0.tgz
+ md5sums = d3378ac787ebe8143255db94cd1202b6
+
+pkgname = babel-eslint
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..78cf83e7c8a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Ian Emnace <igemnace@gmail.com>
+
+pkgname=babel-eslint
+pkgver=8.2.6
+pkgrel=1
+pkgdesc='Custom parser for ESLint'
+arch=('any')
+url='https://github.com/babel/babel-eslint'
+license=('MIT')
+depends=('nodejs' 'eslint')
+makedepends=('npm')
+source=("http://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz")
+noextract=("$pkgname-$pkgver.tgz")
+md5sums=('80f61e8329e1d804b3c9f5248c3ee89b')
+
+package() {
+ npm install -g --user root --prefix "$pkgdir/usr" "$srcdir/$pkgname-$pkgver.tgz"
+
+ # Fix permissions
+ find "$pkgdir/usr" -type d -exec chmod 755 '{}' +
+
+ mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}"
+ ln -s "/usr/lib/node_modules/${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/"
+}