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
focaland the system’s architecture isamd64,dependsis set topkg4. - If the system’s distribution is
focal,dependsis set topkg3 - If the system’s architecture is
amd64,dependsis set topkg2. - If none of the criteria are met,
dependsis 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:
checkdependsconflictsdependsmakedependsoptdependsprovidesreplacessourcecontrol_fieldscksumsmd5sumssha1sumssha224sumssha256sumssha384sumssha512sumsb2sums