# Template file for 'trippy'
pkgname=trippy
version=0.13.0
revision=1
build_wrksrc="crates/trippy"
build_style=cargo
build_helper="qemu"
short_desc="Tool to assist with analysis of networking issues"
maintainer="icp <pangolin@vivaldi.net>"
license="Apache-2.0"
homepage="https://trippy.rs/"
changelog="https://raw.githubusercontent.com/fujiapple852/trippy/refs/heads/master/RELEASES.md"
distfiles="https://github.com/fujiapple852/trippy/archive/refs/tags/${version}.tar.gz"
checksum=72e598d2e0b947e8bc46706021c511f169b7e7634a734c326e492e0f30725c35

post_install() {
	vtargetrun ${DESTDIR}/usr/bin/trip --generate-man > trip.1
	vman trip.1

	for shell in bash fish zsh; do
		vtargetrun ${DESTDIR}/usr/bin/trip --generate ${shell} > trip.${shell}
		vcompletion trip.${shell} ${shell} trip
	done
}
