New package: NetAuth-0.0.8.1

This commit is contained in:
Michael Aldridge 2018-07-08 02:17:24 -07:00
parent de81172402
commit bb640b5597
2 changed files with 38 additions and 0 deletions

1
srcpkgs/NetAuth-server Symbolic link
View file

@ -0,0 +1 @@
NetAuth

37
srcpkgs/NetAuth/template Normal file
View file

@ -0,0 +1,37 @@
# Template file for 'NetAuth'
pkgname=NetAuth
version=0.0.8.1
revision=1
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"
checksum=318f76c3f102afe9ef838f492d9fb75fc3e095c26560f8afd6a59bdca1b3a2e3
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
}
}