31 lines
752 B
Bash
31 lines
752 B
Bash
# Template file for 'NetAuth'
|
|
pkgname=NetAuth
|
|
version=0.2.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=b1fa88cd465a3e37128c64c633137ec8ad45b07226848af51547ffaa455f5605
|
|
|
|
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
|
|
}
|
|
}
|