debian/watch: point to GitHub instead of SourceForge.
[debian/jabref.git] / debian / watch
index 33a69ceba84dba4659b391b9fba1a9a4668c57f2..92c94afda2130073e9c2906cb73b082804a9f0b6 100644 (file)
@@ -1,4 +1,7 @@
 version=3
-opts="dversionmangle=s/\+(dfsg|ds)$//;,uversionmangle=s/(\D)$/${1}1/;s/b(?:eta)?(\d)?$/~beta${1}/" \
-       http://sf.net/jabref/JabRef-(.+)-src\.tar\.bz2 \
+
+opts="dversionmangle=s/\+(dfsg|ds)$//;,\
+       uversionmangle=s/(\D)$/${1}1/;s/b(?:eta)?(\d)?$/~beta${1}/,\
+       filenamemangle=s/(?:.*?)?v?(\d[\d.]*)\.tar\.gz/jabref-$1.tar.gz/" \
+       https://github.com/JabRef/jabref/tags (?:.*?/)?v?(\d[\d.]*)\.tar\.gz \
        debian sh debian/repack.stub