version=4

# Warning: This does not apparently get the submodules: still need to use get-orig-source.sh

opts="repacksuffix=~DO_NOT_USE_THIS, \
    dversionmangle=s/[+.]dfsg\d+//, \
    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/cnr-isti-vclab/meshlab/git/matching-refs/tags/ \
    https://api.github.com/repos/[^/]+/[^/]+/git/refs/tags/Mesh[Ll]ab-(\d{4}\.\d{2})
