summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 771f9046e6f134818f0069ddf95f82ff55709949 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Maintainer: Nicola Revelant <nicolarevelant@outlook.com>
# Contributor: Huang-Huang Bao <eh5@sokka.cn>
# Contributor: Felix Yan <felixonmars@archlinux.org>
# Contributor: Cedric Girard <girard.cedric@gmail.com>

_pkgname=proxychains-ng
pkgname=$_pkgname-git
pkgver=4.17.r3.g1760c93
pkgrel=1
pkgdesc='A hook preloader that allows to redirect TCP traffic of existing dynamically linked programs through one or more SOCKS or HTTP proxies'
arch=('x86_64')
url='https://github.com/rofl0r/proxychains-ng'
license=('GPL-2.0-only')
provides=('proxychains' 'proxychains-ng')
replaces=('proxychains')
conflicts=('proxychains')
depends=('git' 'glibc')
backup=('etc/proxychains.conf')
source=("git+$url.git")
sha512sums=('SKIP')

pkgver() {
  cd $_pkgname
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}


build() {
  cd $_pkgname
  ./configure --prefix=/usr --sysconfdir=/etc
  make
}

package() {
  cd $_pkgname
  make DESTDIR="$pkgdir/" install
  make DESTDIR="$pkgdir/" install-config
  ln -s proxychains4 "$pkgdir/usr/bin/proxychains"
}

# vim:set ts=2 sw=2 et: