summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoricasdri2016-08-08 13:16:20 -0400
committericasdri2016-08-08 13:16:20 -0400
commitde9e8458ae79af67d0e866091392e83a4f6f02e4 (patch)
tree55f975e3e7bc271531b0c2b95f0d144996cbb467
downloadaur-de9e8458ae79af67d0e866091392e83a4f6f02e4.tar.gz
Initial commit. Working PKGBUILD
-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..bdf801b5b80
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+# Generated by mksrcinfo v8
+# Mon Aug 8 17:14:44 UTC 2016
+pkgbase = nodejs-mathjs
+ pkgdesc = An extensive math library for JS which also includes a powerful CLI interface
+ pkgver = 3.4.0
+ pkgrel = 2
+ url = https://www.npmjs.com/package/mathjs
+ arch = any
+ license = Apache
+ depends = nodejs
+ noextract = mathjs-3.4.0.tgz
+ source = https://registry.npmjs.org/mathjs/-/mathjs-3.4.0.tgz
+ sha384sums = 1cd1c1dff9cc03dde966568d8ced3b49b6e0b77f1abb72cf48f9e7947d9c39ae1fd2d52ec190b17c7e7b7b7058f1a00f
+
+pkgname = nodejs-mathjs
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ac738e10574
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer: icasdri <icasdri at gmail dot com>
+
+_npmname=mathjs
+pkgname=nodejs-mathjs
+pkgver=3.4.0
+pkgrel=2
+pkgdesc="An extensive math library for JS which also includes a powerful CLI interface"
+arch=(any)
+url="https://www.npmjs.com/package/${_npmname}"
+license=('Apache')
+depends=('nodejs')
+makedepend=('npm')
+source=("https://registry.npmjs.org/${_npmname}/-/${_npmname}-${pkgver}.tgz")
+noextract=(${_npmname}-${pkgver}.tgz)
+sha384sums=('1cd1c1dff9cc03dde966568d8ced3b49b6e0b77f1abb72cf48f9e7947d9c39ae1fd2d52ec190b17c7e7b7b7058f1a00f')
+
+package() {
+ cd "$srcdir"
+ local _npmdir="${pkgdir}/usr/lib/node_modules/"
+ mkdir -p "$_npmdir"
+ cd "$_npmdir"
+ npm install -g --prefix "${pkgdir}/usr" "${_npmname}@${pkgver}"
+ rmdir "${pkgdir}/usr/etc"
+}