From c7237a2800534dfb769465ea7db1f612f9d4c177 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 | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/srcpkgs/ytcc/template b/srcpkgs/ytcc/template index 4e6979b3e2f..6b537f5c0e8 100644 --- a/srcpkgs/ytcc/template +++ b/srcpkgs/ytcc/template @@ -1,19 +1,33 @@ # Template file for 'ytcc' pkgname=ytcc -version=1.8.2 -revision=4 +version=2.0.1 +revision=1 build_style=python3-module 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() { + export XDG_RUNTIME_DIR=$(mktemp -d) + pytest test + rm -rf $XDG_RUNTIME_DIR +} 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 } From a6d90ffc15a6af21b2e897762bc918e335cf0923 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/srcpkgs/youtube-dl/template b/srcpkgs/youtube-dl/template index a1f0c32b5db..88dabdec37d 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 @@ -12,8 +12,8 @@ maintainer="Daniel Eyßer " 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 +distfiles="https://github.com/ytdl-org/youtube-dl/releases/download/${version}/${pkgname}-${version}.tar.gz" +checksum=7161b2e3f3c09ade59fb6e3a4160a224a3b04e39c7744e14cd9f361f71a57a72 do_check() { PYTHON=/usr/bin/python3 make offlinetest