# Template file for 'hexyl'
pkgname=hexyl
version=0.17.0
revision=2
build_style=cargo
build_helper="qemu"
short_desc="Command-line hex viewer"
maintainer="cinerea0 <cinerea0@protonmail.com>"
license="Apache-2.0 OR MIT"
homepage="https://github.com/sharkdp/hexyl"
changelog="https://raw.githubusercontent.com/sharkdp/hexyl/master/CHANGELOG.md"
distfiles="https://github.com/sharkdp/hexyl/archive/refs/tags/v${version}.tar.gz"
checksum=72fa17397ad187eec6b295d02c7caabbb209a6e0d5706187b8a599bd5df8615e

post_install() {
	vlicense LICENSE-MIT

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