debian/watch: use sourceforge URL directly instead of the redirector
[debian/jabref.git] / debian / watch
index d705dc9..34f5337 100644 (file)
@@ -1,4 +1,5 @@
 # Compulsory line, this is a version 3 file
 version=3
-
-http://sf.net/jabref/JabRef-(.*)-src\.tar\.bz2
+opts="uversionmangle=s/(\D)$/${1}1/;s/b(?:eta)?(\d)?$/~beta${1}/" \
+http://sourceforge.net/projects/jabref/files \
+       http://downloads.sourceforge.net/jabref/JabRef-(.+)-src\.tar\.bz2.*