void-packages/srcpkgs/restic/template
2021-02-20 22:55:21 -03:00

27 lines
778 B
Bash

# Template file for 'restic'
pkgname=restic
version=0.12.0
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=39b615a36a5082209a049cce188f0654c6435f0bc4178b7663672334594f10fe
post_install() {
vlicense LICENSE
for f in doc/man/*; do
vman $f
done
vcompletion doc/bash-completion.sh bash
vcompletion doc/zsh-completion.zsh zsh
}