void-packages/srcpkgs/NetAuth/template
2019-03-30 23:03:49 -07:00

31 lines
755 B
Bash

# Template file for 'NetAuth'
pkgname=NetAuth
version=0.0.13.1
revision=1
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=6f21dc859ffcec0ddf52eb2de91ed84856bed9d4c468f06a569e8bb3d498046e
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
}
}