# Template file for 'gitoxide'
pkgname=gitoxide
version=0.38.0
revision=1
build_style=cargo
build_helper=qemu
configure_args="
 --no-default-features
 --features max-control,gix-features/zlib-stock,gitoxide-core-blocking-client,http-client-curl
"
hostmakedepends="pkg-config"
makedepends="zlib-devel sqlite-devel libcurl-devel"
short_desc="Idiomatic, lean, fast and safe pure Rust implementation of Git"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0 OR MIT"
homepage="https://github.com/Byron/gitoxide"
changelog="https://github.com/Byron/gitoxide/raw/main/CHANGELOG.md"
distfiles="https://github.com/Byron/gitoxide/archive/refs/tags/v${version}.tar.gz"
checksum=650a9ecae3953505db59983d10583bb8eb69ce820f794735c0fa8c519ca902b4

post_install() {
	vlicense LICENSE-APACHE
	vlicense LICENSE-MIT

	for _shell in bash fish zsh; do
		vtargetrun ${DESTDIR}/usr/bin/ein completions -s ${_shell} > ein.${_shell}
		vtargetrun ${DESTDIR}/usr/bin/gix completions -s ${_shell} > gix.${_shell}
		vcompletion ein.${_shell} ${_shell} ein
		vcompletion gix.${_shell} ${_shell} gix
	done
}
