version=4
opts=\
        filenamemangle=s%.*/@ANY_VERSION@%@PACKAGE@-$1.tar.gz%,\
        downloadurlmangle=s%(api.github.com/repos/[^/]+/[^/]+)/git/refs/%$1/tarball/refs/%g,\
        searchmode=plain \
        https://api.github.com/repos/aws/amazon-ec2-hibinit-agent/git/matching-refs/tags/ \
        https://api.github.com/repos/[^/]+/[^/]+/git/refs/tags/[-_]?[Vv]?((?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)(?:-(?:(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?:[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)
#sem ver regex given by <https://semver.org>. Replace with @SEMANTIC_VERSION@ when upgrading to watch version 5
