summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhsoting.net>2018-03-21 22:10:36 +0100
committerJörg Frings-Fürst <debian@jff-webhsoting.net>2018-03-21 22:10:36 +0100
commit0ca227c7ff3be80a64807df27ffe7066cf447e09 (patch)
treee407b722f35da956b5b8a7f592a278528386cea3 /debian
parent04000f00b443808e2e90783845aaf419dc7d60a5 (diff)
rewrite d/watch for github
Diffstat (limited to 'debian')
-rw-r--r--debian/watch16
1 files changed, 3 insertions, 13 deletions
diff --git a/debian/watch b/debian/watch
index 00bf5ff..5641bc5 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,14 +1,4 @@
version=4
-#http://sf.net/uriparser/uriparser-(.*)\.(?:tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))
-#opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/uriparser-$1\.tar\.gz/ \
-# https://github.com/uriparser/uriparser/tags (\d\S+)\.tar\.gz
-
-#opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/uriparser-$1\.tar\.gz/ \
-# https://github.com/uriparser/uriparser/tags .*/?(\d{1}\.\d.\d)\.tar\.gz
-https://github.com/uriparser/uriparser/releases /uriparser/uriparser/archive/(.+)\.tar\.gz
-
-#opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/<project>-$1\.tar\.gz/ \
-# https://github.com/<user>/<project>/tags .*/?(\d{1}\.\d.\d)\.tar\.gz
-
-#opts=filenamemangle=s/.+\/?(\d\S+)\.tar\.gz/uriparser-$1\.tar\.gz/ \
-# https://github.com/uriparser/uriparser/tags .*/?(\d\S+)\.tar\.gz
+opts=uversionmangle=s/_/./g;s/\.(rc\d*)$/~$1/ \
+ https://github.com/uriparser/uriparser/releases \
+ .*[^n]/(?:|v|version-|version|release-|r|REL_|rel-|uriparser(?:_|-))(\d[^\s/]*)\.(?:tar\.xz|txz|tar\.bz2|tbz2|tar\.gz|tgz)