wireguard-go: update to 0.0.20180524.

This commit is contained in:
lemmi 2018-05-24 03:13:21 +02:00
parent 7f89803b39
commit d4f36e0949

View file

@ -1,21 +1,20 @@
# Template file for 'wireguard-go'
pkgname=wireguard-go
version=0.0.20180519
version=0.0.20180524
revision=1
build_style=go
go_import_path="git.zx2c4.com/wireguard-go"
hostmakedepends="git"
hostmakedepends="git dep"
depends="wireguard-tools"
short_desc="Implementation of WireGuard in Go"
maintainer="lemmi <lemmi@nerd2nerd.org>"
license="GPL-2"
homepage="https://git.zx2c4.com/wireguard-go/about/"
distfiles="https://git.zx2c4.com/wireguard-go/snapshot/wireguard-go-${version}.tar.xz"
checksum=d2b0f43679b3559952cf8d244d537903d03699ed7c8a2c1e7fc37ee424e30439
checksum=1d539f6c51dd33098a536af0285ef03c561db0ff343f23a75405207fcf48ec3e
pre_build() {
# go doesn't like local imports, so we rewrite them
for localimport in ratelimiter rwcancel tai64n xchacha20poly1305; do
sed -i -e "s#\"./$localimport\"#\"git.zx2c4.com/wireguard-go/$localimport\"#" *.go
done
rm donotuseon_linux.go
cd ${GOSRCPATH}
dep ensure -vendor-only -v
}