# Lifecycle Hooks

<!-- TODO: Detailed explanation of hook execution order and method signatures.
  #[BeforeStage('lib-name', 'build')], #[AfterStage(...)], #[PatchBeforeBuild].
  How hooks from different packages are merged and ordered.
  Common patterns: patching config.m4, injecting compile flags, post-install fixups. -->
