mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-13 18:43:51 +02:00
New package: wireguard-go-0.0.20180519
This commit is contained in:
parent
5ff9ef5f82
commit
d308025e51
2 changed files with 23 additions and 0 deletions
21
srcpkgs/wireguard-go/template
Normal file
21
srcpkgs/wireguard-go/template
Normal 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
|
||||||
|
}
|
2
srcpkgs/wireguard-go/update
Normal file
2
srcpkgs/wireguard-go/update
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
site='https://git.zx2c4.com/wireguard-go/'
|
||||||
|
pattern='wireguard-go-\K[\d.]*\d'
|
Loading…
Add table
Reference in a new issue