# Template file for 'hex'
pkgname=hex
version=0.6.0
revision=1
build_style=cargo
hostmakedepends="pandoc"
short_desc="Futuristic take on hexdump"
maintainer="SolitudeSF <solitudesf@protonmail.com>"
license="MIT"
homepage="https://github.com/sitkevij/hex"
distfiles="https://github.com/sitkevij/hex/archive/refs/tags/v${version}.tar.gz"
checksum=7952ee2b6782e49259f82155c3b5287f1be72f15360a88e379c9270bd0d2416c

post_build() {
	vsed -i MANPAGE.md -e 's/hx/hex/g'
	pandoc --standalone --to man MANPAGE.md -o hex.1
}

post_install() {
	# avoid conflict with helix
	mv ${DESTDIR}/usr/bin/hx ${DESTDIR}/usr/bin/hex
	vman hex.1
	vlicense LICENSE
}
