summaryrefslogtreecommitdiff
path: root/debian/watch
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2019-07-12 09:16:16 +0200
committerJörg Frings-Fürst <debian@jff.email>2019-07-12 09:16:16 +0200
commit6cac1738b6aebf75b29d225775030d291319f9a2 (patch)
tree81a7805f37e72a346e824c30506c47516727dcb9 /debian/watch
parent9d981e4e0e65de82dd97bc670832e0f83a0754f0 (diff)
Rewrite debain/watch
Diffstat (limited to 'debian/watch')
-rw-r--r--debian/watch7
1 files changed, 6 insertions, 1 deletions
diff --git a/debian/watch b/debian/watch
index c6c26be..8a7b475 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,2 +1,7 @@
version=4
-https://github.com/kkos/oniguruma/tags .*/v?(\d\S*)\.tar\.gz
+opts=\
+dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$//,\
+uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\d*)$/$1~$2/;s/RC/rc/;s/\-/\./g;s/\_/\./g,\
+filenamemangle=s/(?:.*?)?(?:rel|v|oniguruma|ONIGURUMA)?[\-\_]?(\d\S+)\.(tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))/oniguruma-$1.$2/ \
+https://github.com/kkos/oniguruma/tags \
+(?:.*?/)?(?:rel|v|oniguruma|ONIGURUMA)?[\-\_]?(\d\S+)\.(?:tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) \