summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD28
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5f325f1cb7d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = elm-oracle
+ pkgdesc = Elm Oracle intends to be a standalone program that can be used by all editor plugins to query information about a project's source code
+ pkgver = 1.1.1
+ pkgrel = 1
+ url = https://github.com/ElmCast/elm-oracle
+ arch = any
+ license = BSD3
+ makedepends = npm
+ depends = nodejs
+ noextract = elm-oracle-1.1.1.tgz
+ options = !strip
+ source = http://registry.npmjs.org/elm-oracle/-/elm-oracle-1.1.1.tgz
+ md5sums = 034451ea1a50d72bd4c96b28ef68279f
+ sha256sums = 627ea0ef226f02ffbb3079f0c7c7cef33dc837700faa0d2a8d61141094a323c6
+
+pkgname = elm-oracle
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8f2a3011bb6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Guillermo Ramos <0xwille at gmail dot com>
+
+_npmname=elm-oracle
+pkgname=elm-oracle
+pkgver=1.1.1
+pkgrel=1
+pkgdesc="Elm Oracle intends to be a standalone program that can be used by all editor plugins to query information about a project's source code"
+arch=(any)
+url="https://github.com/ElmCast/elm-oracle"
+license=('BSD3')
+options=(!strip)
+noextract=($_npmname-$pkgver.tgz)
+source=(http://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz)
+md5sums=("034451ea1a50d72bd4c96b28ef68279f")
+sha256sums=("627ea0ef226f02ffbb3079f0c7c7cef33dc837700faa0d2a8d61141094a323c6")
+
+makedepends=(npm)
+depends=(nodejs)
+optdepends=()
+
+
+package() {
+ cd $srcdir
+ local _npmdir="$pkgdir/usr/lib/node_modules/"
+ mkdir -p $_npmdir
+ cd $_npmdir
+ npm install -g --prefix "$pkgdir/usr" $_npmname@$pkgver
+}