summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7c1c0799adda6cd42efc93fd758dae522ec18677 (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: ookami <mail@ookami.one>
pkgname=proxy-ns
pkgver=1.2.7
pkgrel=1
pkgdesc="Run programs in a network namespace where all traffic go through proxy"
arch=('x86_64')
url="https://github.com/OkamiW/proxy-ns"
license=('GPL')
depends=('bash' 'glibc' 'libcap' 'iproute2' 'badvpn-git')
makedepends=('git' 'make')
source=("git+$url")
sha512sums=('SKIP')
backup=(
    etc/proxy-nsd/main.conf
)

build() {
    cd "$srcdir/$pkgname"
    git checkout "v$pkgver"
    make
}

package() {
    cd "$srcdir/$pkgname"
    make DESTDIR="$pkgdir" PREFIX=/usr install
}