version=4
# transmission-<VERSION>.tar.xz , exactly this format with this extension, contains the upstream
# tarball with all the additional third-party software necessary to build transmission
opts="searchmode=plain,\
      repacksuffix=+dfsg,dversionmangle=s/\+dfsg$//, \
      filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%@PACKAGE@-$1.tar.xz%,\
      uversionmangle=s/(\d)[_\.\-\+]?(RC|rc|pre|dev|beta|alpha)[.]?(\d*)$/$1~$2$3/" \
  https://api.github.com/repos/@PACKAGE@/@PACKAGE@/releases \
  https://github\.com/@PACKAGE@/@PACKAGE@/releases/download/@ANY_VERSION@/@PACKAGE@\-(?:\d[\.\-\w%]+)\.tar\.xz debian
