Please, be advised that the supported and recommended way to package a Perl distribution under the Debian Perl team is documented in our Git guide.
This document explains a way of packaging a Perl project from the upstream git tags instead of the CPAN tarballs. See libgit-annex-perl for an actual example.
dzil build cd Foo-Bar-* dh-make-perl --pkg-perl
mv debian .. cd ..
The rest of the output resulting from dh-make-perl is discarded, including the git repository created inside the dzil build.
#!/usr/bin/make -f %: dh $@ --with dist-zilla
For instance, if upstream is using cgit:
version=4 https://git.example.com/Foo-Bar \ /snapshot/Foo-Bar-v?@ANY_VERSION@@ARCHIVE_EXT@
For instance, debian/control may have the following contents depending on the plugins enabled in dzil dist.ini:
Build-depends: debhelper-compat (= 12), dh-dist-zilla, libdist-zilla-plugin-git-perl, libdist-zilla-plugin-podweaver-perl,
Unless the main module name can be obtained from META.yml or META.json.
git add debian git commit dzil clean
Copyright (c) 2020 by the individual authors and contributors noted above. All rights reserved. This document is free software; you may redistribute it and/or modify it under the same terms as Perl itself
Perl is distributed under your choice of the GNU General Public License version 1 or later or the Artistic License. On Debian systems, the complete text of the GNU General Public License version 1 can be found in `/usr/share/common-licenses/GPL-1' and the Artistic License in `/usr/share/common-licenses/Artistic'.