aboutsummaryrefslogtreecommitdiff
path: root/srcpkgs/restic/template
blob: 09cbac4ddfcc64abd9a2d6977eaea6139516281d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Template file for 'restic'
pkgname=restic
version=0.17.1
revision=1
build_style=go
go_import_path=github.com/restic/restic
go_package="${go_import_path}/cmd/restic"
go_ldflags="-X 'main.version=${version} (Void Linux)'"
short_desc="Backup solution written in Go"
maintainer="Florian Eich <flrn@nrmncr.net>"
license="BSD-2-Clause"
homepage="https://restic.net/"
changelog="https://raw.githubusercontent.com/restic/restic/master/CHANGELOG.md"
distfiles="https://github.com/restic/restic/releases/download/v${version}/restic-${version}.tar.gz"
checksum=cba3a5759690d11dae4b5620c44f56be17a5688e32c9856776db8a9a93d6d59a

post_install() {
	vlicense LICENSE

	for f in doc/man/*; do
		vman $f
	done

	vcompletion doc/fish-completion.fish fish
	vcompletion doc/bash-completion.sh bash
	vcompletion doc/zsh-completion.zsh zsh
}