# Template file for 'sftpgo'
pkgname=sftpgo
version=2.6.4
revision=1
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=ce102615a0534c84a480276d641812b1a5f9a52bf0c1755ca914614f14905dcb
make_dirs="/var/lib/sftpgo 0750 root root"

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