diff options
author | Maxime Poulin | 2016-02-02 02:33:04 -0500 |
---|---|---|
committer | Maxime Poulin | 2016-02-02 02:34:39 -0500 |
commit | d423d6df291428b77806fb07c10a0719781240b9 (patch) | |
tree | 1538f2125de43aad50d5360b320b47e5ecfb71e0 | |
download | aur-nodejs-wstunnel.tar.gz |
Initial package
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 25 |
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a0e385374643 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +# Generated by mksrcinfo v8 +# mar fév 2 07:34:28 UTC 2016 +pkgbase = nodejs-wstunnel + pkgdesc = Tunnels a TCP socket over a WebSocket connection + pkgver = 1.1.1 + pkgrel = 1 + url = https://github.com/mhzed/wstunnel + arch = any + license = MIT + makedepends = npm + depends = nodejs + noextract = wstunnel-1.1.1.tgz + source = http://registry.npmjs.org/wstunnel/-/wstunnel-1.1.1.tgz + md5sums = ee3c45003b78449d083a760945d9ca9c + +pkgname = nodejs-wstunnel + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..20b24a4f1e11 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Maxime Poulin <maxpoulin64@gmail.com> +pkgname='nodejs-wstunnel' +_npmname='wstunnel' +pkgver=1.1.1 +pkgrel=1 +epoch= +pkgdesc="Tunnels a TCP socket over a WebSocket connection" +arch=('any') +url="https://github.com/mhzed/wstunnel" +license=('MIT') +depends=('nodejs') +makedepends=('npm') +source=("http://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz") +noextract=("$_npmname-$pkgver.tgz") +md5sums=('ee3c45003b78449d083a760945d9ca9c') + +package() { + local _npmdir="$pkgdir/usr/lib/node_modules/" + mkdir -p "$_npmdir" + cd "$_npmdir" + npm install -g --prefix "$pkgdir/usr" "$srcdir/$_npmname-$pkgver.tgz" + + grep -FRlZ "$startdir" "$pkgdir" | \ + xargs -0 -- sed -i "s|$startdir|/tmp/build|g" +} |