void-packages/srcpkgs/NetAuth/template

38 lines
809 B
Bash
Raw Normal View History

2018-07-08 11:17:24 +02:00
# Template file for 'NetAuth'
pkgname=NetAuth
2018-11-03 06:16:16 +01:00
version=0.0.11
2018-10-29 05:33:26 +01:00
revision=1
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-11-03 06:16:16 +01:00
checksum=12df647cda552d147fefb19b8c27672577b39ca8c41c2702bc7f80354215c9f0
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
}
}