void-packages/srcpkgs/NetAuth/template
2019-08-30 20:29:31 -07:00

31 lines
752 B
Bash

# Template file for 'NetAuth'
pkgname=NetAuth
version=0.1.4
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=585ced9d2442b6a6dbc74dc8d94762994ac543f47189d316b841ec849b70384e
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
}
}