DH-MAKE-RAKU(1p) User Contributed Perl Documentation DH-MAKE-RAKU(1p)

dh-make-raku - Create debian source package from Raku module

  # Create a new package
  dh-make-raku --git=<git_url> --pkg=<pkg-name> --tag=<upstream_release_tag>
  # refresh a package (to be run in package dir)
  dh-make-raku
  # get new release from upstream
  dh-make-raku --upgrade <new_upstream_version>

This script requires:

When fed a "git" upstream URL, dh-make-raku does the following tasks:

This works for most simple packages and is also useful for getting started with packaging Raku modules.

To create a new package, you must have:

  • The URL of the git repository of the new module. Only "https" style URL are supported.
  • Debian package name. Usually "raku-something"
  • The upstream tag of the release to be packaged. See below if upstream does not use tags.

Then run a command like:

  dh-make-raku --git=<git_url> --pkg=<pkg-name> --tag=<upstream_release_tag>

For instance:

  dh-make-raku --git=https://git.tyil.nl/raku/Log --pkg=raku-log --tag=v0.3.1

In this case, you must use a git reference instead of a tag. Usually "HEAD" is good enough. "dh-make-raku" will get upstream version from "META6.json"

For instance:

  dh-make-raku --tag HEAD --git https://github.com/tadzik/File-Find.git --pkg raku-file-find

Run:

  gbp buildpackage

Run

  dh-make-raku --upgrade <new_upstream_version>

This command update the "upstream" branch and merge it in "debian/sid" branch and then update debian files.

URL of the package repository.
Debian package name.
Upstream tag or a git reference.

To update upstream remote URL and its homepage, run

  dh-make-raku -git <new_remote>

Then "dh-make-raku" updates git remote, all reference of upstream home page in debian files.

Be default, "dh-make-raku" gets git credentials from "~/.git-credentials" file.

If this file is not available, Salsa credentials must be provided with "DRT_SALSA_USER" and "DRT_SALSA_PRIVATE_TOKEN" environment variables.

For what it's worth, "DRT" means "Debian Raku Team".

2023-11-01 perl v5.36.0