void-packages/srcpkgs/kopia/template
2022-01-16 15:45:55 -03:00

22 lines
732 B
Bash

# Template file for 'kopia'
pkgname=kopia
version=0.10.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=d7c3115862e8ff56d948eef45eff89bac7867c9ae68e39d4142158d72a039d91
post_install() {
for shell in bash zsh; do
vtargetrun ${DESTDIR}/usr/bin/${pkgname} --completion-script-${shell} > completions.${shell}
vcompletion completions.${shell} ${shell}
done
}