void-packages/srcpkgs/chezmoi/template
Abigail G 80e92fea83 chezmoi: update to 2.6.1, enable cgo.
Note: if this package breaks on musl, disable cgo for musl
(see void-linux/void-packages#33298)
2021-10-08 10:35:10 -03:00

28 lines
927 B
Bash

# Template file for 'chezmoi'
pkgname=chezmoi
version=2.6.1
revision=1
build_style=go
go_import_path="github.com/twpayne/chezmoi/v2"
go_build_tags="noembeddocs noupgrade"
go_ldflags="-X main.version=${version} -X main.commit=v${version}
-X main.date=$(date -u +%Y-%m-%dT%H:%M:%SZ) -X main.builtBy=xbps
-X github.com/twpayne/chezmoi/cmd.DocsDir=/usr/share/doc/chezmoi"
short_desc="Manage your dotfiles across multiple machines, securely"
maintainer="Abigail G <dev@kb6.ee>"
license="MIT"
homepage="https://chezmoi.io/"
distfiles="https://github.com/twpayne/chezmoi/archive/v${version}.tar.gz"
checksum=9703edbe369a498feb82173bda6400f23b7d1624154f84aa0beccf19462f082f
export CGO_ENABLED=1
post_install() {
vlicense LICENSE
for f in docs/*; do vdoc $f; done
vcompletion completions/chezmoi-completion.bash bash chezmoi
vcompletion completions/chezmoi.fish fish chezmoi
vcompletion completions/chezmoi.zsh zsh chezmoi
}