aboutsummaryrefslogtreecommitdiffstats
path: root/testing/obfs4proxy/APKBUILD
blob: f5e91f5ae49b006cace9d62b5d50fc03bed1433f (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
# Contributor: Katie Holly <holly@fuslvz.ws>
# Maintainer: Katie Holly <holly@fuslvz.ws>
pkgname=obfs4proxy
pkgver=0.0.14
pkgrel=8
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="chmod-clean"
source="$pkgname-$pkgver.tar.gz::https://github.com/Yawning/obfs4/archive/obfs4proxy-$pkgver.tar.gz"
builddir="$srcdir"/obfs4-$pkgname-$pkgver

export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"

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

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

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

sha512sums="
2e28516ab888485d14d7f60fc0bee9a8268faf681803c71faff49185b7870cc0c5a6df3dbbb2a4d446307997812092ca64070be978997bc82cc89ee435698feb  obfs4proxy-0.0.14.tar.gz
"