# Template file for 'mise'
pkgname=mise
version=2024.12.24
revision=2
build_style=cargo
make_check_args="-- --skip cli --skip runtime_symlinks::tests::test_list_symlinks"
hostmakedepends="pkg-config libgit2-1.8-devel"
makedepends="openssl-devel libgit2-1.8-devel libzstd-devel"
short_desc="Polyglot runtime manager (asdf rust clone)"
maintainer="Daniel Lewan <daniel@teddydd.me>"
license="MIT"
homepage="https://github.com/jdx/mise"
changelog="https://github.com/jdx/mise/releases"
distfiles="https://github.com/jdx/mise/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=82b96daf3df808f0c08af1d9f3b9dee700c3634191f8669a21b9d45905ad566b

post_install() {
	vlicense LICENSE
	vman man/man1/mise.1
	vdoc README.md
	vcompletion completions/mise.bash bash mise
	vcompletion completions/mise.fish fish mise
	vcompletion completions/_mise zsh mise
}

rtx_package() {
	depends="${sourcepkg}>=${version}_${revision}"
	short_desc+=" (transitional dummy package)"
	build_style=meta
}
