31 lines
752 B
Bash
31 lines
752 B
Bash
# Template file for 'NetAuth'
|
|
pkgname=NetAuth
|
|
version=0.1.0
|
|
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=3521516de7e342199ebc564614f0b5f93119b2fcbf603c186cd2c7f20cb18874
|
|
|
|
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
|
|
}
|
|
}
|