summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO17
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD22
3 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f570249d0e1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+# Generated by mksrcinfo v8
+# Sat Jun 18 23:18:32 UTC 2016
+pkgbase = nodejs-swagger-tools
+ pkgdesc = A Node.js and browser module that provides tooling around Swagger.
+ pkgver = 0.10.1
+ pkgrel = 1
+ url = https://github.com/apigee-127/swagger-tools
+ arch = any
+ license = MIT
+ depends = nodejs
+ depends = npm
+ noextract = swagger-tools-0.10.1.tgz
+ source = https://registry.npmjs.org/swagger-tools/-/swagger-tools-0.10.1.tgz
+ sha256sums = 67de70db3c6ff45c30acdf67e9bba3f29ba78b0d05c2387f811680f02c69f7d3
+
+pkgname = nodejs-swagger-tools
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..f71c635dafd
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*
+!.gitignore
+!PKGBUILD
+!.SRCINFO
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..eacfc6f4f3e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Mario Finelli <mario at finel dot li>
+
+_npmname=swagger-tools
+pkgname=nodejs-$_npmname
+pkgver=0.10.1
+pkgrel=1
+pkgdesc="A Node.js and browser module that provides tooling around Swagger."
+arch=('any')
+url="https://github.com/apigee-127/swagger-tools"
+license=('MIT')
+depends=('nodejs' 'npm' )
+source=(https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz)
+noextract=($_npmname-$pkgver.tgz)
+sha256sums=('67de70db3c6ff45c30acdf67e9bba3f29ba78b0d05c2387f811680f02c69f7d3')
+
+package() {
+ cd "$srcdir"
+ local _npmdir="$pkgdir/usr/lib/node_modules/"
+ mkdir -p "$_npmdir"
+ cd "$_npmdir"
+ npm install -g --user root --prefix "$pkgdir/usr" $_npmname@$pkgver
+}