Complex Subpackages in an APKBUILD
Explore how to define and manage complex subpackages in an APKBUILD for Alpine Linux. Learn to create custom subpackage functions for libraries, handle file organization, and test installations for clean package management.
We'll cover the following...
We'll cover the following...
Preface
Almost every APKBUILD has some sort of subpackage, be it for splitting documentation or for translation files. This allows installations to be as minimal as possible. If, for example, we have our language set to English and don’t want our applications to be translated to other languages, we don’t have to install the -lang subpackage, saving the space it would otherwise take up.
Execution order of subpackages
Let’s recall how subpackages are defined in an APKBUILD with an example. Let’s say we have a library ...