# Template file for 'yggdrasil'
pkgname=yggdrasil
version=0.5.7
revision=2
build_style=go
go_import_path=github.com/yggdrasil-network/yggdrasil-go
short_desc="Experiment in scalable routing as an encrypted IPv6 overlay network"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-3.0-only"
homepage="https://yggdrasil-network.github.io/"
changelog="https://raw.githubusercontent.com/yggdrasil-network/yggdrasil-go/develop/CHANGELOG.md"
distfiles="https://github.com/yggdrasil-network/yggdrasil-go/archive/v${version}.tar.gz"
checksum=035122cc840443a1ed9cb7f066fe5bd6d2ff879a7026be449c0a24436b04f4c8

do_build() {
	PKGNAME=${pkgname} PKGVER=${version} ./build
}

do_install() {
	vbin yggdrasil
	vsv yggdrasil
}

yggdrasilctl_package() {
	short_desc="Administration utility for the yggdrasil node admin API"
	pkg_install() {
		vbin yggdrasilctl
	}
}
