debian/rules: Adapt to new upstream build system.
[youtubedl] / debian / watch
index 2b1a44a11d8caa2c539f001977cc3dffffa4e6ed..78bd69c5a6592d6ca8e91c5f087e11354ee0c9e5 100644 (file)
@@ -1,3 +1,4 @@
-version=3
-opts=dversionmangle=s/\+dfsg\d*$// \
-http://youtube-dl.org/downloads/(\d.*)/youtube-dl-(:?.*)\.tar\.gz
+version=4
+opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%youtube-dl-$1.tar.gz%,dversionmangle=s/\+dfsg\d*$//" \
+https://github.com/rg3/youtube-dl/releases \
+     (?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate