# Template file for 'sftpgo'
pkgname=sftpgo
version=2.2.2
revision=2
build_style=go
go_import_path=github.com/drakkan/sftpgo/v2
short_desc="Fully featured and highly configurable SFTP server"
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="AGPL-3.0-only"
homepage="https://github.com/drakkan/sftpgo"
distfiles="https://github.com/drakkan/sftpgo/archive/refs/tags/v$version.tar.gz"
checksum=d5c68223017071efce597712612ce7ce4334a70f773a8c0b7afa7a69427c79c8
make_dirs="/var/lib/sftpgo root root 0750"

post_install() {
	vmkdir usr/share/sftpgo
	vcopy static usr/share/sftpgo/
	vcopy templates usr/share/sftpgo/
	vlicense LICENSE
	vsv sftpgo
}
