summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1e9614aa8246de9d1d466735c3338dc6c0e69426 (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
# Maintainer: Ali Molaei <ali dot molaei at protonmail dot com>

pkgname=webtunnel-server-git
pkgver=a2f9d5a6
pkgrel=2
pkgdesc="Pluggable Transport based on HTTP Upgrade(HTTPT) - Server"
arch=('x86_64')
url="https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/webtunnel"
license=('custom:TorProject')
makedepends=('go' 'gcc' 'git')
options=('!emptydirs' '!strip')

# Source to compile to a specific commit
source=("git+https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/webtunnel.git#commit=a2f9d5a60ee8b2b743f87885fd47917315d10b70"
				"https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/webtunnel/-/raw/main/LICENSE")

sha256sums=('SKIP'
						'b9af8342b66eaa8f628db006c4e85f2cbf0a0823c2a86d941b546ff14fc8fe9c')

build(){
    export PATH=$PATH:$(go env GOPATH)/bin/
    cd ${srcdir}/webtunnel/main/server
    go build
}

package() {
    install -Dm755 "${srcdir}"/webtunnel/main/server/server -T "${pkgdir}"/usr/local/bin/webtunnel-server
	  install -Dm644 LICENSE -T "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}