summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5a3085188588bacdeefd9c006259e22f263dc472 (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
# Maintainer: mutantmonkey <aur@mutantmonkey.mx>
pkgname=snowflake-pt-client-git
_gitname=snowflake
pkgver=754.0054cb2
pkgrel=1
pkgdesc="Snowflake is a pluggable transport that proxies traffic through temporary proxies using WebRTC"
arch=('i686' 'x86_64')
url="https://trac.torproject.org/projects/tor/wiki/doc/Snowflake"
license=('BSD')
depends=('libx11')
makedepends=('git' 'go')
options=('!strip' '!emptydirs')
source=('git+https://git.torproject.org/pluggable-transports/snowflake.git')
sha256sums=('SKIP')

pkgver() {
  cd $_gitname
  echo $(git rev-list --count main).$(git rev-parse --short main)
}

build() {
  cd "$srcdir/$_gitname/client"
  GOPATH="$srcdir" GOBIN="$PWD" go get -v
}

package() {
  cd "$srcdir/$_gitname"
  install -Dm755 client/client "${pkgdir}/usr/bin/snowflake-pt-client"
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

# vim:set ts=2 sw=2 et: