On Thu, Nov 4, 2021 at 12:48 PM Johannes Schauer Marin Rodrigues <josch@debian.org> wrote: > >> filenamemangle=s/.+\/tag\/(\d\S+)$/foot-$1\.tar\.gz/ \ > filenamemangle=s{.*/(.*)}{@PACKAGE@-$1.tar.gz} \ I think this is more generic: filenamemangle=s/.*?(@ANY_VERSION@@ARCHIVE_EXT@)/@PACKAGE@-$1/ (not dependent to compression format)