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