summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorTom Vincent2018-06-29 13:57:33 +0100
committerTom Vincent2018-06-29 13:57:33 +0100
commit68c8c5cb67c5dc3e039caf0d1216cc07c16130f1 (patch)
treeb2589f5b155e3a7fb2789c466b38149ac0604dc4 /PKGBUILD
downloadaur-nodejs-json-to-js.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD17
1 files changed, 17 insertions, 0 deletions
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
+}