Distro/Architecture Specific Variables
Certain variables used by makedeb can contain distribution and architecture extensions. Let’s consider this example:
depends=('pkg1')
depends_amd64=('pkg2')
focal_depends=('pkg3')
focal_depends_amd64=('pkg4')
All of these variables are used for the depends
variable, likewise behaving in the following way:
- If the system’s distribution is
focal
and the system’s architecture isamd64
,depends
is set topkg4
. - If the system’s distribution is
focal
,depends
is set topkg3
- If the system’s architecture is
amd64
,depends
is set topkg2
. - If none of the criteria are met,
depends
is set topkg1
.
The system’s distribution is found via the lsb_release -cs
command, and the system’s architecture via dpkg --print-architecture
.
If more than one match is found (such as both depends_amd64
and focal_depends_amd64
), the following order of specificity is used, with the first being of highest priority:
focal_depends_amd64
(distribution + architecture)focal_depends
(distribution)depends_amd64
(architecture)depends
(bare variable)
The following variables currently support distribution and architecture extensions:
checkdepends
conflicts
depends
makedepends
optdepends
provides
replaces
source
control_fields
cksums
md5sums
sha1sums
sha224sums
sha256sums
sha384sums
sha512sums
b2sums