# Template file for 'gitoxide'
pkgname=gitoxide
version=0.35.0
revision=1
build_style=cargo
build_helper=qemu
hostmakedepends="pkg-config cmake"
makedepends="zlib-devel openssl-devel sqlite-devel"
short_desc="Idiomatic, lean, fast and safe pure Rust implementation of Git"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT, Apache-2.0"
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=4f074b30830ff37da8ae9de11b0441addea9f1552f0fcac1fa6fb56435d5bbea

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
}
