# Template file for 'ytcc'
pkgname=ytcc
version=2.8.0
revision=2
build_style=python3-pep517
make_check_args="-m not(flaky)"
hostmakedepends="python3-build hatchling python3-installer python3-wheel"
depends="yt-dlp python3-click python3-wcwidth python3-defusedxml"
checkdepends="${depends} python3-pytest"
short_desc="Cmdline tool to track your youtube channels"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://github.com/woefe/ytcc"
distfiles="https://github.com/woefe/ytcc/archive/refs/tags/v${version}.tar.gz"
checksum=7d865c783452fdfe56c089e854f02049f13e6dec987065f56ece433dcc2f05ab

post_install() {
	vcompletion scripts/completions/bash/ytcc.completion.sh bash
	vcompletion scripts/completions/fish/ytcc.fish fish
	vcompletion scripts/completions/zsh/_ytcc zsh
	mv ${DESTDIR}/usr/bin/ytccf{.sh,}
	vman doc/ytcc.1
}
