void-packages/srcpkgs/xh/template

30 lines
885 B
Bash

# Template file for 'xh'
pkgname=xh
version=0.22.2
revision=1
build_style=cargo
configure_args="--no-default-features --features online-tests,native-tls"
hostmakedepends="pkg-config oniguruma-devel"
makedepends="openssl-devel oniguruma-devel"
short_desc="Friendly and fast tool for sending HTTP requests"
maintainer="Arthur Weagel <arthur.contrib@gmail.com>"
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=32a6470ab705aba4c37fce9806202dcc0ed24f55e091e2f4bdf7583108a3da63
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
}