summaryrefslogtreecommitdiff
path: root/nodejs-configurable-http-proxy/PKGBUILD
blob: b04edbf42339bfb6452aafa4c75384dd3d3fa734 (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
27
28
# Maintainer: Erich Eckner <arch at eckner dot net>

pkgname=nodejs-configurable-http-proxy
pkgver=2.0.4
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=('2d76c3e0b6e3d42f056707658427da22459ad12d6a9d18d87c9fad5e8597a41970dfdc9a4c5e98b46c1f24c2276b7d274883a6878acacdf84b4f463eec6058de')
_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
}