# Template file for 'kopia' pkgname=kopia version=0.13.0 revision=1 build_style=go build_helper=qemu go_import_path=github.com/kopia/kopia go_ldflags="-X ${go_import_path}/repo.BuildVersion=${version} -X '${go_import_path}/repo.BuildInfo=Void Linux'" short_desc="Fast and secure backup tool" maintainer="Daniel Eyßer " license="Apache-2.0" homepage="https://kopia.io/" distfiles="https://github.com/kopia/kopia/archive/v${version}.tar.gz" checksum=017fe4375207ce2ed73433b072249882735de1a8a5aedebec2ca1c6fee9e5a9b post_install() { for shell in bash zsh; do vtargetrun ${DESTDIR}/usr/bin/${pkgname} --completion-script-${shell} > completions.${shell} vcompletion completions.${shell} ${shell} done }