void-packages/srcpkgs/kopia/template

23 lines
732 B
Bash

# Template file for 'kopia'
pkgname=kopia
version=0.12.1
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 <daniel.eysser@gmail.com>"
license="Apache-2.0"
homepage="https://kopia.io/"
distfiles="https://github.com/kopia/kopia/archive/v${version}.tar.gz"
checksum=c42d4c7c7d0e3e0c80cfee1e42b7567264d97e36d18d2d5e7b675cd7e2fdb5a6
post_install() {
for shell in bash zsh; do
vtargetrun ${DESTDIR}/usr/bin/${pkgname} --completion-script-${shell} > completions.${shell}
vcompletion completions.${shell} ${shell}
done
}