Manage AUR repository files using assets and asset_dir
masterYou can control which files are uploaded to the AUR repository using two different strategies. Note that these are mutually exclusive with each other and with the pkgbuild input.
Adding or Overwriting files with assets
Use assets to provide newline-separated glob patterns for additional files.
- Behavior: It only adds or overwrites files. It will not delete files from the AUR repository that are missing from your patterns.
- Expansion: Patterns are expanded by
bashduring the copy process.
Mirroring a directory with asset_dir
Use asset_dir to specify a path to a directory that should act as the full source of truth for the AUR repository.
- Behavior: It makes the AUR repository an exact mirror of the directory. Files present in the AUR repository but absent from
asset_dirwill be deleted. - Requirements: The
asset_dirmust contain thePKGBUILD. - Filtering: A
.gitignoreinsideasset_diris respected (viarsync), though complex negation patterns may behave slightly differently than standard git semantics.