version=4
opts="filenamemangle=s%.*/v?(\d\S*)\.tar\.gz%@PACKAGE@-$1.tar.gz%" \
  https://github.com/hashicorp/errwrap/tags .*/v?(\d\S*)\.tar\.gz
