From 51a0cf8848f48a4eff0ad3505c5616924f475a3f Mon Sep 17 00:00:00 2001 From: Nathan Owens Date: Thu, 3 Dec 2020 14:45:44 -0600 Subject: [PATCH 1/2] ytcc: update to 2.0.1. --- srcpkgs/ytcc/template | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/srcpkgs/ytcc/template b/srcpkgs/ytcc/template index 4e6979b3e2f..e320916abed 100644 --- a/srcpkgs/ytcc/template +++ b/srcpkgs/ytcc/template @@ -1,19 +1,31 @@ # Template file for 'ytcc' pkgname=ytcc -version=1.8.2 -revision=4 +version=2.0.1 +revision=1 build_style=python3-module +make_use_env=yes hostmakedepends="gettext python3-setuptools" -depends="python3-SQLAlchemy python3-feedparser python3-lxml python3-youtube-dl - mpv" +depends="mpv python3-SQLAlchemy python3-click python3-feedparser python3-lxml + python3-youtube-dl" +checkdepends="python3-pytest python3-click youtube-dl ffmpeg mpv" 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=edb5367209a8c465c6b6f4f01705430602f25ca29b318dc18e42c139d2fe1efc + +pre_check() { + # Needs XDG_RUNTIME_DIR variable + vsed -e '/test_play_video/,/assert len/d' -i test/test_cli.py +} + +do_check() { + pytest 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/fish/ytcc.fish fish + vcompletion scripts/completions/zsh/_ytcc zsh + vcompletion scripts/completions/bash/ytcc.completion.sh bash ytcc } From 79406b79e32fcdf09e4b6d377736e58ac9401fab Mon Sep 17 00:00:00 2001 From: Nathan Owens Date: Thu, 3 Dec 2020 14:49:53 -0600 Subject: [PATCH 2/2] youtube-dl: update to 2020.12.02. --- srcpkgs/youtube-dl/template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srcpkgs/youtube-dl/template b/srcpkgs/youtube-dl/template index a1f0c32b5db..a5fcaddee1b 100644 --- a/srcpkgs/youtube-dl/template +++ b/srcpkgs/youtube-dl/template @@ -1,6 +1,6 @@ # Template file for 'youtube-dl' pkgname=youtube-dl -version=2020.11.26 +version=2020.12.02 revision=1 wrksrc="${pkgname}" build_style=python3-module @@ -13,7 +13,7 @@ license="Unlicense" homepage="https://yt-dl.org" changelog="https://raw.githubusercontent.com/ytdl-org/youtube-dl/master/ChangeLog" distfiles="${homepage}/downloads/latest/${pkgname}-${version}.tar.gz" -checksum=fb106cd60f94fe00afee46d4e028cdca8ebff171ddfa9d4ff2a2fd5956586f7f +checksum=7161b2e3f3c09ade59fb6e3a4160a224a3b04e39c7744e14cd9f361f71a57a72 do_check() { PYTHON=/usr/bin/python3 make offlinetest