aboutsummaryrefslogtreecommitdiffstats
path: root/main/proxychains-ng/APKBUILD
blob: b40ba25b5403b42036ce92b52383ae18019bfe48 (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
44
45
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=proxychains-ng	
pkgver=4.8.1
pkgrel=1
pkgdesc="This tool provides proxy server support to any app."
url="https://github.com/rofl0r/proxychains-ng"
arch="all"
license="GPL2"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages=""
source="https://github.com/rofl0r/$pkgname/archive/v$pkgver.zip"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p0 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
        ./configure \
                --build=$CBUILD \
                --host=$CHOST \
                --prefix=/usr \
		--sysconfdir=/etc/proxychains
	make || return 1
}

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

md5sums="e36bf8fd4b614295cb774a3ebd7828a1  v4.8.1.zip"
sha256sums="2d332d01189c1969ab2100ec1f50f24c853253e41a99aec51496a6320c8eb939  v4.8.1.zip"
sha512sums="f1d42abe65be3420256438cf5f89b7b5fc3d5439546e915ec0fd1e2cab9223825c3a638fe32349b9ea0442f5c26d1ef9a2f8e660eb4af5ebd34a07a6541e6ec3  v4.8.1.zip"