36 lines
1.0 KiB
Bash
36 lines
1.0 KiB
Bash
# Template file for 'chezmoi'
|
|
pkgname=chezmoi
|
|
version=2.54.0
|
|
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.builtBy=xbps"
|
|
checkdepends="tar git"
|
|
short_desc="Manage your dotfiles across multiple machines, securely"
|
|
maintainer="classabbyamp <void@placeviolette.net>"
|
|
license="MIT"
|
|
homepage="https://chezmoi.io/"
|
|
changelog="https://github.com/twpayne/chezmoi/releases"
|
|
distfiles="https://github.com/twpayne/chezmoi/archive/v${version}.tar.gz"
|
|
checksum=74281a5b1d9b4e8b5d6f4775204d5b56500649b5d906944a29f6c284aa54423e
|
|
|
|
pre_build() {
|
|
local _date
|
|
if [ "$SOURCE_DATE_EPOCH" ]; then
|
|
_date="$(date --utc --date "@$SOURCE_DATE_EPOCH" "+%Y-%m-%d")"
|
|
go_ldflags+=" -X main.date=${_date}"
|
|
fi
|
|
}
|
|
|
|
do_check() {
|
|
make test
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
vcompletion completions/chezmoi-completion.bash bash
|
|
vcompletion completions/chezmoi.fish fish
|
|
vcompletion completions/chezmoi.zsh zsh
|
|
}
|