version=4

# Upstream tarballs are published as palmer-mail-<version>.tar.gz in the same
# directory as the .deb downloads.
#
# THE TRAILING $ IS LOAD-BEARING, and it was added after testing rather than
# from habit. Without it the pattern matches palmer-mail-1.4.0.tar.gz.asc as
# well as the tarball, so publishing a detached signature would hand uscan two
# candidates for one release. The version group starts with a digit for the
# same reason: to match a version, not any run of dots.
#
# That directory also holds palmer-mail_<version>_<target>_amd64.deb files.
# They use an underscore and do not match, which was tested, not assumed.
#
# NO pgpsigurlmangle: no detached signature is published alongside the tarball.
# Adding one is a real improvement and it is upstream's to make first -- a watch
# file that points at a signature which does not exist fails every run.
#
# The tarball this matches is the SANITISED public tree with debian/ excluded,
# byte-identical to the file shipped as the .orig.tar.gz.
https://palmermail.cevinpalmer.com/download/ \
    palmer-mail-(\d[\d.]*)\.tar\.gz$
