version=4

opts=\
    filenamemangle=s%.*/@ANY_VERSION@%@PACKAGE@-$1.tar.gz%,\
    downloadurlmangle=s%(api.github.com/repos/[^/]+/[^/]+)/git/refs/%$1/tarball/refs/%g,\
    dversionmangle=s/\+dfsg(\.\d+)?$//,\
    repacksuffix=+dfsg,\
    searchmode=plain \
    https://api.github.com/repos/leethomason/tinyxml2/git/matching-refs/tags/ \
    https://api.github.com/repos/[^/]+/[^/]+/git/refs/tags/@ANY_VERSION@
