summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn D Jones III2015-06-16 14:00:45 -0600
committerJohn D Jones III2015-06-16 14:00:45 -0600
commit79e70c840b7eff6ae9cecbd50db2d79519b0d566 (patch)
treefc5b80a7af787c87b139d1834a6048c376817902
downloadaur-79e70c840b7eff6ae9cecbd50db2d79519b0d566.tar.gz
Initial import
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD23
2 files changed, 37 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..16e6b9935a5
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = nodejs-json-diff
+ pkgdesc = JSON diff
+ pkgver = 0.3.1
+ pkgrel = 1
+ url = https://github.com/andreyvit/json-diff
+ arch = any
+ depends = nodejs
+ depends = npm
+ noextract = json-diff-0.3.1.tgz
+ source = http://registry.npmjs.org/json-diff/-/json-diff-0.3.1.tgz
+ sha1sums = 6dbc3ae2d25e075a7fd71bcd9874458666fb681b
+
+pkgname = nodejs-json-diff
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..757fb4527f3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,23 @@
+# Maintainer: John D Jones III AKA jnbek <jnbek1972 -_AT_- g m a i l -_Dot_- com>
+_npmname=json-diff
+pkgname=nodejs-json-diff # All lowercase
+pkgver=0.3.1
+pkgrel=1
+pkgdesc="JSON diff"
+arch=(any)
+url="https://github.com/andreyvit/json-diff"
+license=()
+depends=('nodejs' 'npm')
+optdepends=()
+source=(http://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz)
+noextract=($_npmname-$pkgver.tgz)
+sha1sums=('6dbc3ae2d25e075a7fd71bcd9874458666fb681b')
+
+package() {
+ cd $srcdir
+ local _npmdir="$pkgdir/usr/lib/node_modules/"
+ mkdir -p $_npmdir
+ cd $_npmdir
+ npm install -g --prefix "$pkgdir/usr" $_npmname@$pkgver
+}
+# vim:set ts=2 sw=2 et: