From 4f7cf6055070a58a0dea5e8937a73d7d27e3b0df Mon Sep 17 00:00:00 2001 From: icp Date: Tue, 6 Sep 2022 21:18:24 +0530 Subject: [PATCH] ytcc: update to 2.6.0. --- srcpkgs/ytcc/template | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/srcpkgs/ytcc/template b/srcpkgs/ytcc/template index 99a0c9b91122..494070eb7259 100644 --- a/srcpkgs/ytcc/template +++ b/srcpkgs/ytcc/template @@ -1,19 +1,26 @@ # Template file for 'ytcc' pkgname=ytcc -version=1.8.2 -revision=5 +version=2.6.0 +revision=1 build_style=python3-module -hostmakedepends="gettext python3-setuptools" -depends="python3-SQLAlchemy python3-feedparser python3-lxml python3-youtube-dl - mpv" +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 " license="GPL-3.0-or-later" homepage="https://github.com/woefe/ytcc" distfiles="https://github.com/woefe/ytcc/archive/v${version}.tar.gz" -checksum=360db561bb0278b7f326fe3da9b012e738e1eceec9031c66b3749207f8091283 +checksum=3d69104a20b9a6861a2663a0ffcbd6054fe05a62caccf2126c0b0cf3a446dbec + +do_check() { + PYTHONPATH="$(cd build/lib* && pwd)" python3 -m pytest -m "not flaky" test +} post_install() { - vinstall completions/fish/ytcc.fish 0644 usr/share/fish/vendor_completions.d - vinstall completions/zsh/_ytcc 0644 usr/share/zsh/site-functions + 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 }