Watch file results

component: main
debian_mangled_uversion: 2.0b5
debian_uversion: 2.0b5
distribution: debian
last_check: 2024-06-18 00:54:37.554703
release: sid
source: cpdb-backend-cups
status: up to date
upstream_url: https://github.com/OpenPrinting/cpdb-backend-cups/archive/refs/tags/2.0b5.tar.gz
upstream_version: 2.0b5
version: 2.0b5-1
watch_file:
# this variant catches all version 1.* and 2.* with or without v
version=4
opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*?b?\d)\.tar\.gz%cpdb-backend-cups-$1.tar.gz%" \
    https://github.com/OpenPrinting/cpdb-backend-cups/tags \
    (?:.*?/)?v?(\d[\d.]*?b?\d)\.tar\.gz

## tags are without v nowadays (or maybe even not)
#version=4
#https://github.com/OpenPrinting/cpdb-backend-cups/tags/ \
# .*/v(\d\S*)\.(?:tar\.gz|tgz)