Include:AbuildRootBld

From Alpine Linux
Revision as of 20:09, 12 January 2024 by Zcrayfish (talk | contribs) (Use pkg and path templates. <noinclude> the category.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Install package abuild-rootbld:

apk add abuild-rootbld

You may now build your packages from source in an unprivileged sandbox based on bubblewrap with the command:

abuild rootbld

rootbld assumes your APKBUILD file is in the ~/aports whose structure like aports or you need to set environment variable APORTSDIR to current directory. If the build process needs network access there has to bet set the net option in APKBUILD.

Note that using rootbld inside a docker container requires additional configuration.