# Maintainer: Erich Eckner pkgname=nodejs-configurable-http-proxy pkgver=2.0.2 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/jupyterhub/configurable-http-proxy/archive/${pkgver}.tar.gz") sha512sums=('2488322df7d5fd79f2495c1eb3e48d93398fdb9294a9cafa7e39ab0304b2d4a3975cda8170b008fa2efef42876f52bdbc99ed73022f1983d9ae871911e458063') _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 }