void-packages/srcpkgs/NetAuth/template

38 lines
808 B
Bash
Raw Normal View History

2018-07-08 11:17:24 +02:00
# Template file for 'NetAuth'
pkgname=NetAuth
2018-07-31 08:38:54 +02:00
version=0.0.9
2018-08-25 09:04:32 +02:00
revision=2
2018-07-08 11:17:24 +02:00
build_style=go
hostmakedepends="dep"
go_import_path="github.com/NetAuth/NetAuth"
go_package="${go_import_path}/cmd/netauth
${go_import_path}/cmd/netauthd"
short_desc="Network authentication and identity system"
maintainer="Michael Aldridge <maldridge@VoidLinux.eu>"
license="MIT"
homepage="https://netauth.org"
distfiles="https://github.com/NetAuth/NetAuth/archive/v$version.tar.gz"
2018-07-31 08:38:54 +02:00
checksum=6449c709b1511443a9c3e5db54b1c255ae5812d16be6c3ba11b68502a31a2b19
2018-07-08 11:17:24 +02:00
pre_build() {
cd $GOSRCPATH
dep ensure
}
do_check() {
cd $GOSRCPATH
go test -v ./...
}
post_install() {
vlicense LICENSE
}
NetAuth-server_package() {
short_desc+=" - server"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/bin/netauthd
}
}