Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

pkg

pkg builds an Arch Linux package with makepkg and needs fakeroot. It is available only on Linux. Breadbox runs makepkg --skipinteg --nodeps. It skips integrity checks for the generated PKGBUILD and does not resolve dependencies. Declare runtime dependencies with extra-depends. See the format overview for tools and architecture names.

Cargo.toml requirements

FieldRequirement
package.nameConverts to an Arch package name. Use letters, digits, @, ., + and -. _ becomes -. The first character is a letter or digit.
package.versionUse ASCII letters, digits, ., _, - and +. - and + become _. The first character is a letter or digit.
package.descriptionRequired and single-line.
package.licenseRequired and single-line.
package.authors[0]Required and single-line.
package.repositoryOptional and single-line.

Config

Set the shared Linux fields in [linux] as shown in Linux settings, then add options under [formats.pkg].

OptionDefaultDescription
extra-depends[]Extra package dependencies. Keep entries on one line and use only ASCII letters, digits and @ . _ + - < = > :.
[linux]
identifier = "com.example.myapp"
description-long = "Example desktop application"
categories = "Utility"

[formats.pkg]
extra-depends = ["glibc", "bash"]

Install files with role = "config" are added to the package backup list. See Install files.

Output

<name>-<version>-1-<pkg-arch>.pkg.tar.zst