# Template file for 'trippy'
pkgname=trippy
version=0.12.2
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=6f23549e5f398113ecd0d2f15c829f5ab84fcdf99dde9942c61746e72f990085

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
}
