version=4

# See https://davesteele.github.io/development/2015/05/02/debian-watch-file-format-for-signed-github-source-tars/ for GitHub workaround for releases page.

opts="downloadurlmangle=s/archive\/refs\/tags\/v@ANY_VERSION@(@ARCHIVE_EXT@)/releases\/download\/v$1\/@PACKAGE@-$1.tar.xz/,filenamemangle=s/v@ANY_VERSION@(@ARCHIVE_EXT@)/@PACKAGE@-$1.tar.xz/" \
https://github.com/chewing/@PACKAGE@/tags .*/v@ANY_VERSION@.tar.gz
