Build APKBUILDs with abuild
Discover what you can do with APKBUILDs, and try building your first package using abuild.
We'll cover the following...
Preface
The abuild package also installs an additional tool for us: newapkbuild. This command can be used for creating a template to base our first package on.
Run newapkbuild
First, let’s see how to run newapkbuild. Its help page lists all available commands:
We’ll go through these options at a later stage, so don’t worry if these aren’t immediately clear. Since we only want to create a simple dummy package, only a handful of options are relevant for us. The following command will do to create our first package:
Afterward, we can inspect the output newapkbuild generated:
As we can see, newapkbuild has set pkgdesc to the description we passed to it via -d and set pkgname to the last positional argument we passed to it. Let’s go over the function of the individual keys, line by line.
Contributoris an optional comment that is used inaports, Alpine’s package tree. Everyone that has contributed to this particularAPKBUILDis listed here in the formatName <email@example.org>. There may be multiple contributors to oneAPKBUILD, in which case there are multiple