# Template file for 'xh'
pkgname=xh
version=0.26.1
revision=1
build_style=cargo
configure_args="--no-default-features --features native-tls"
hostmakedepends="pkg-config oniguruma-devel"
makedepends="openssl-devel oniguruma-devel"
short_desc="Friendly and fast tool for sending HTTP requests"
maintainer="classabbyamp <void@placeviolette.net>"
license="MIT"
homepage="https://github.com/ducaale/xh"
changelog="https://raw.githubusercontent.com/ducaale/xh/master/CHANGELOG.md"
distfiles="https://github.com/ducaale/xh/archive/refs/tags/v${version}.tar.gz"
checksum=6c4822374d3b9bacfc50719ffb5653a32fd84344e50fd88b499ed8fc9e52198b

post_install() {
	ln -sf xh "${DESTDIR}/usr/bin/xhs"

	vcompletion completions/xh.bash bash
	vcompletion completions/_xh zsh
	vcompletion completions/xh.fish fish
	vdoc README.md
	vlicense LICENSE

	for m in doc/*.1; do
		vman "$m"
	done
}
