The DFSG version string is added because the /deps directory is removed from the
upstream tarball since it's not used in any part of the packaging.
- -- Russell Sim <russell.sim@gmail.com>, Sat, 29 Jul 2017 18:32:25 +0200
+ -- Russell Sim <russell.sim@gmail.com> Sat, 29 Jul 2017 18:32:25 +0200
+
+I replaced the DFSG suffix with DS, because the removal is merely reducing the
+source tarball in size, not fixing any DFSG violations.
+
+ -- Timo Röhling <roehling@debian.org> Sun, 28 Aug 2022 14:08:22 +0200
-version=3
-opts=compression=xz,repack,filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/libgit2-$1\.tar\.gz/,dversionmangle=s/\+dfsg\d*$//,repacksuffix=+dfsg.1 \
- https://github.com/libgit2/libgit2/releases .*/v?([\d.]*)\.tar\.gz
+version=4
+opts=filenamemangle=s%(?:.*?)?v?(\d[\d.]*@ARCHIVE_EXT@)%@PACKAGE@-$1%,\
+ repack,dversionmangle=auto,repacksuffix=+ds \
+ https://github.com/libgit2/libgit2/tags (?:.*?/)?v?@ANY_VERSION@@ARCHIVE_EXT@
+