summaryrefslogtreecommitdiff
path: root/nodejs-configurable-http-proxy/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-05-25 12:40:41 +0200
committerErich Eckner <git@eckner.net>2016-05-25 12:40:41 +0200
commit5b8628cf40ad2abb85f73bad9d808cc92f171ada (patch)
treedada1efa901d11c5a2ff1975e905679ffc1e5b4e /nodejs-configurable-http-proxy/PKGBUILD
parent4fecbcc32bfc8e16b2d861073c031fc4ce5d6c54 (diff)
downloadarchlinuxewe-5b8628cf40ad2abb85f73bad9d808cc92f171ada.tar.xz
nodejs-configurable-http-proxy neu
Diffstat (limited to 'nodejs-configurable-http-proxy/PKGBUILD')
-rw-r--r--nodejs-configurable-http-proxy/PKGBUILD28
1 files changed, 28 insertions, 0 deletions
diff --git a/nodejs-configurable-http-proxy/PKGBUILD b/nodejs-configurable-http-proxy/PKGBUILD
new file mode 100644
index 000000000..88e811150
--- /dev/null
+++ b/nodejs-configurable-http-proxy/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+
+pkgname=nodejs-configurable-http-proxy
+pkgver=0.3.0
+pkgrel=1
+pkgdesc="node-http-proxy plus a REST API"
+url="https://github.com/jupyter/configurable-http-proxy"
+arch=(any)
+license=('BSD')
+depends=('nodejs')
+makedepends=('npm')
+source=("https://github.com/jupyter/configurable-http-proxy/archive/${pkgver}.tar.gz")
+sha512sums=('49a063d102d9f5abd10554b08a0bd72a308499b915cfe0ad8344e25f77b163a96932bfc0dff9fc020c8889ecf8081b4ad2c96de1b2b949122e10e3b00907a9b3')
+_npmname=configurable-http-proxy
+
+package() {
+ cd $srcdir
+ local _npmdir="$pkgdir/usr/lib/node_modules/"
+ mkdir -p $_npmdir
+ cd $_npmdir
+ npm install -g --prefix "$pkgdir/usr" $_npmname@$pkgver
+
+ rm -rf "$pkgdir/usr/etc"
+ chown -R root:root "$pkgdir/usr"
+ cd "$srcdir/$_npmname-$pkgver"
+ install -Dm644 COPYING.md "${pkgdir}"/usr/share/licenses/$pkgname/COPYING.md
+}
+