void-packages/srcpkgs/yggdrasil/template

30 lines
855 B
Bash

# Template file for 'yggdrasil'
pkgname=yggdrasil
version=0.5.6
revision=1
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=2e5a0874d29efd97147b98818afc1a457bc1d1cf42208df12d234962cb44379e
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
}
}