# Template file for 'zvm'
pkgname=zvm
version=0.8.26
revision=1
build_style=go
build_helper="qemu"
make_check_args="-skip TestNoAutoUpgrades_default"
go_import_path="github.com/tristanisham/zvm"
go_build_tags="noAutoUpgrades"
short_desc="Zig version manager"
maintainer="tranzystorekk <tranzystorek.io@protonmail.com>"
license="MIT"
homepage="https://www.zvm.app"
changelog="https://github.com/tristanisham/zvm/releases"
distfiles="https://github.com/tristanisham/zvm/archive/refs/tags/v${version}.tar.gz"
checksum=df53ba087a0488b9a0b4696aa91ca976c54ced1a22cfdd16e7258217f96b1d09

post_install() {
	vlicense LICENSE

	for _shell in bash fish zsh; do
		vtargetrun ${DESTDIR}/usr/bin/zvm completion ${_shell} > zvm.${_shell}
		vcompletion zvm.${_shell} ${_shell}
	done
}
