void-packages/srcpkgs/NetAuth/template
2019-11-25 23:21:04 -08:00

33 lines
776 B
Bash

# Template file for 'NetAuth'
pkgname=NetAuth
version=0.3.2
revision=1
wrksrc=netauth-$version
build_style="go"
go_import_path="github.com/netauth/netauth"
go_package="${go_import_path}/cmd/netauth
${go_import_path}/cmd/netauthd"
hostmakedepends="git"
short_desc="Network authentication and identity system"
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="MIT"
homepage="https://netauth.org"
distfiles="https://github.com/NetAuth/NetAuth/archive/v$version.tar.gz"
checksum=ad5251f2fa36a0a4175d5483bb5aa6de62efd7a0b048da9e2f4d1a5ff5fb86bb
do_check() {
go test -v ./...
}
post_install() {
vlicense LICENSE
}
NetAuth-server_package() {
short_desc+=" - server"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/bin/netauthd
}
}