summaryrefslogtreecommitdiff
path: root/nodejs-configurable-http-proxy/PKGBUILD
blob: 3203f06343cc1d23d6d3e144f008ec1c46bf7a40 (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.3.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=("${pkgname}-${pkgver}.tar.gz::https://github.com/jupyterhub/configurable-http-proxy/archive/${pkgver}.tar.gz")
sha512sums=('1345fd448e5a3e7c1ac6d151bbdf8b8ad1e412a1211da8bfbf46b817ef45ecdcd61938902c1a3cef6807b10431044ce35a6301d9d8f374cd2c4bc56551f5f730')
_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"
}