aboutsummaryrefslogtreecommitdiffstats
path: root/testing/obfs4proxy/APKBUILD
blob: 034224c9f95512b7e5a4602d24fa429d3d112586 (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
# Contributor: Katie Holly <holly@fuslvz.ws>
# Maintainer: Katie Holly <holly@fuslvz.ws>
pkgname=obfs4proxy
pkgver=0.0.11
pkgrel=7
pkgdesc="pluggable transport proxy for Tor, implementing obfs4"
url="https://gitweb.torproject.org/pluggable-transports/obfs4.git/"
arch="x86_64 x86 armv7"
license="BSD-3-Clause"
makedepends="go"
options="!strip chmod-clean"
source="$pkgname-$pkgver.tar.gz::https://github.com/Yawning/obfs4/archive/obfs4proxy-$pkgver.tar.gz"
builddir="$srcdir"/obfs4-$pkgname-$pkgver

export GOPATH="$srcdir"

build() {
	go build -v -o ./$pkgname-executable ./$pkgname
}

check() {
	go test -short ./...
}

package() {
	install -Dm755 $pkgname-executable "$pkgdir"/usr/bin/$pkgname
}

sha512sums="3eb50bc8067802f8260e0926999a659919e55cb34247f443f66a4852c9ceceacae361602a57ad1fd28a84e4ed54f3800c3258e67266eb23d45b1d09e31c5d869  obfs4proxy-0.0.11.tar.gz"