summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD17
2 files changed, 31 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a681f034837
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = nodejs-json-to-js
+ pkgdesc = Convert JSON to JS and output to stdout
+ pkgver = 1.0.2
+ pkgrel = 1
+ url = https://github.com/Dinoshauer/json-to-js
+ arch = any
+ license = MIT
+ depends = npm
+ noextract = json-to-js-1.0.2.tgz
+ source = http://registry.npmjs.org/json-to-js/-/json-to-js-1.0.2.tgz
+ sha256sums = a4e2eed8443bd9fd68b3b7d0921db118b9b3bd72e03d3c85143fe7734ddf1e18
+
+pkgname = nodejs-json-to-js
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..34c5c2952c0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,17 @@
+_npmname=json-to-js
+pkgname=nodejs-$_npmname
+pkgver=1.0.2
+pkgrel=1
+pkgdesc="Convert JSON to JS and output to stdout"
+arch=(any)
+url="https://github.com/Dinoshauer/json-to-js"
+license=('MIT')
+depends=('npm')
+source=(http://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz)
+noextract=($_npmname-$pkgver.tgz)
+sha256sums=('a4e2eed8443bd9fd68b3b7d0921db118b9b3bd72e03d3c85143fe7734ddf1e18')
+
+package() {
+ npm install -g --user root --prefix "$pkgdir/usr" "$srcdir/$_npmname-$pkgver.tgz"
+ chmod -R go-w "$pkgdir"/usr
+}