-version=3
-http://bitbucket.org/rg3/youtube-dl/downloads/ (?:.*/)?(\d+\.\d+\.\d+)\.tar\.gz
+version=4
+opts="dversionmangle=s/\+dfsg\d*$//,pgpsigurlmangle=s/$/.sig/" \
+https://github.com/ytdl-org/youtube-dl/releases \
+ (?:.*?/)?v?youtube-dl-(\d[\d.]*)\.tar\.gz debian uupdate