diff --git a/srcpkgs/youtube-dl/template b/srcpkgs/youtube-dl/template index ce525dd49c..54187e923c 100644 --- a/srcpkgs/youtube-dl/template +++ b/srcpkgs/youtube-dl/template @@ -1,8 +1,8 @@ # Template file for 'youtube-dl' pkgname=youtube-dl -version=2020.11.01.1 +version=2020.11.12 revision=1 -wrksrc=youtube-dl +wrksrc="${pkgname}" build_style=python3-module hostmakedepends="python3-setuptools" depends="python3-setuptools" @@ -12,8 +12,8 @@ maintainer="Daniel Eyßer " license="Unlicense" homepage="https://yt-dl.org" changelog="https://gitlab.com/dstftw/youtube-dl/-/raw/master/ChangeLog" -distfiles="https://yt-dl.org/downloads/${version}/${pkgname}-${version}.tar.gz" -checksum=7a62187bc9f91af42eb5c9c95652e350170a72dbbdac8c7d71a6aeb4885a901a +distfiles="${homepage}/downloads/latest/${pkgname}-${version}.tar.gz" +checksum=aeb00b2079c4711de7eea2a91f6923ebade84c5e985b0caeb47d572395d42831 do_check() { PYTHON=/usr/bin/python3 make offlinetest diff --git a/srcpkgs/youtube-dl/update b/srcpkgs/youtube-dl/update index bca8eae02d..f07969487f 100644 --- a/srcpkgs/youtube-dl/update +++ b/srcpkgs/youtube-dl/update @@ -1,2 +1 @@ -site="https://yt-dl.org/downloads/" -pattern="\d{4}\.\d{2}\.\d{2}" +pattern="${pkgname}-\K[0-9.]+(?=\.tar)"