blob: c23bdf41ff6ed8bc4679cfbfa76cfec5849fd02f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# Maintainer: Erich Eckner <arch at eckner dot net>
pkgname=nodejs-configurable-http-proxy
pkgver=4.0.1
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=('03d9609ace9925ba2205cd3fdb8277a7a023124b68bf3eb5b7f8ed0d9d0d4a69a60e254eecd6ef8bf8ed2924e28083daaafb78891fb8c3b011b455ebc25feb49')
_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"
}
|