summaryrefslogtreecommitdiff
path: root/nodejs-configurable-http-proxy/PKGBUILD
blob: b298342bd12a376b8a90e451575d2f2337969d42 (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=3.1.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=('6e1e066fb6a32f01e95fe3d198a0e1909f69b1f84c902340a9f8c61ec4d347dfc92f6e22c4b34b05caf02fc74f3e950523da43315c4d5beb7e7ca62287c41ffd')
_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"
}