New package: wireguard-go-0.0.20180519

This commit is contained in:
lemmi 2018-05-19 01:05:28 +02:00 committed by Leah Neukirchen
parent 5ff9ef5f82
commit d308025e51
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,21 @@
# Template file for 'wireguard-go'
pkgname=wireguard-go
version=0.0.20180519
revision=1
build_style=go
go_import_path="git.zx2c4.com/wireguard-go"
hostmakedepends="git"
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
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
}

View File

@ -0,0 +1,2 @@
site='https://git.zx2c4.com/wireguard-go/'
pattern='wireguard-go-\K[\d.]*\d'