summaryrefslogtreecommitdiff
path: root/nodejs-configurable-http-proxy/PKGBUILD
blob: de9ee6684dfd6c5217fe3993de845ca40a7adf8b (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=1.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=("https://github.com/jupyterhub/configurable-http-proxy/archive/${pkgver}.tar.gz")
sha512sums=('5994d65816eaadd53259229e01777a6d80c52c4be17a73a8b4fea51c0a2a8b23f2d91439c2928515a348a78966cef9536d7c33615373dac5855929003ff8156d')
_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
}