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
| Field | Requirement |
|---|---|
package.name | Converts to an Arch package name. Use letters, digits, @, ., + and -. _ becomes -. The first character is a letter or digit. |
package.version | Use ASCII letters, digits, ., _, - and +. - and + become _. The first character is a letter or digit. |
package.description | Required and single-line. |
package.license | Required and single-line. |
package.authors[0] | Required and single-line. |
package.repository | Optional and single-line. |
Config
Set the shared Linux fields in [linux] as shown in
Linux settings, then add options under [formats.pkg].
| Option | Default | Description |
|---|---|---|
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