Patch Files (.patch)

Patch files are stored with the postfix .patch in the package directory and are applied automatically during the package build.

There are a few ways to control applying patches conditionally by adding an additional extension:

If more sophisticated conditional control is needed for a patch, it can be named completely differently, such as .diff or .patch.manual, and dynamically injected to the patchfiles variable in the package's .conf:

if condition; then
    var_append patchfiles $confdir/something.diff
fi