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

build() {
	cd "$builddir"
	go get -d ./$pkgname
	go build -v -o ./$pkgname-executable ./$pkgname
}

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

sha512sums="57b71138a139b1821cf58c8e1965f207a6164a046bbfc8d6da828351d4f5bf4ecfb63ca5c69dba834c4e3a72362089d2a7fd296278115c0cae1c53c51d1b124d  obfs4proxy-0.0.7.tar.gz"