Set the specified shell code hook-command as the hook hook-name,
which will run at the times specified in the run steps (since dpkg 1.17.6).
The hooks will
always be executed even if the following action is not performed (except
for the binary hook).
Note: Hooks can affect the build process, and cause build failures if
their commands fail, so watch out for unintended consequences.
The current hook-name supported are:
init preclean source build binary changes postclean check sign done
The hook-command supports the following substitution format string,
which will get applied to it before execution:
-
- %%
-
A single % character.
- %a
-
A boolean value (0 or 1), representing whether the following action is
being performed.
- %p
-
The source package name.
- %v
-
The source package version.
- %s
-
The source package version (without the epoch).
- %u
-
The upstream version.