void-packages/srcpkgs/yggdrasil/template

31 lines
840 B
Bash

# Template file for 'yggdrasil'
pkgname=yggdrasil
version=0.3.2
revision=1
wrksrc="yggdrasil-go-${version}"
build_style=go
go_import_path=github.com/yggdrasil-network/yggdrasil-go
hostmakedepends="go git"
short_desc="An experiment in scalable routing as an encrypted IPv6 overlay network"
maintainer="Jan Christian Gruenhage <jan.christian@gruenhage.xyz>"
license="LGPL-3.0-only"
homepage="https://yggdrasil-network.github.io/"
distfiles="https://github.com/yggdrasil-network/yggdrasil-go/archive/v${version}.tar.gz"
checksum=28fc0f89f4f95c809a1eda54d1ce63b34444b44d2f9ddec4c566cc3c6e010f53
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
}
}