27 lines
870 B
Bash
27 lines
870 B
Bash
# Template file for 'ytcc'
|
|
pkgname=ytcc
|
|
version=2.6.1
|
|
revision=1
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools"
|
|
depends="mpv yt-dlp python3-click python3-wcwidth"
|
|
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=abd6d26d8c1a0ad5787cf890b08ddf1cb685c2e26f353abb168da49a40974e3c
|
|
|
|
do_check() {
|
|
PYTHONPATH="$(cd build/lib* && pwd)" python3 -m pytest -m "not flaky" test
|
|
}
|
|
|
|
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
|
|
}
|