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