Include:Setup your system and account for building packages
The alpine-sdk is a metapackage that pulls in the most essential packages used to build new packages.
Install those packages now:
This would be a good time to create a normal user account for you to work in. (You weren't going to develop as root now, were you!) To create the user:
To make life easier later, it's a good idea to add this user to /etc/sudoers. Append the line
<yourusername> ALL=(ALL) ALL
using the command:
Now logout of the root account, and login as <yourusername>. From here on everything can be done in a normal user account, and operations that require superuser privileges can be done with sudo.
Read carefully Development using git to grasp basic Git operations and configure email patches sending.
Now we can clone the aports tree.
Before we start creating or modifying APKBUILD files we need to setup abuild to our system/user. Edit the file abuild.conf to your requirements. Most of the defaults can be left alone, unless you are developing for a custom platform, in which case the comments in the file should guide you. The one field to edit is PACKAGER, so that you can get credit (or blame) for packages you create.
We also need to prepare the location that the build process caches files when they are downloaded. By default this is /var/cache/distfiles. To create this directory and ensure that it is writeable, enter the following commands:
Or add yourself to the abuild group