ref: https://www.educative.io/answers/how-to-build-and-install-alpine-linux-package-with-newapkbuild

podman run -it --rm docker.io/alpine sh apk update apk add alpine-sdk sudo - sudo is required for the abuild-keygen to work (idk why) abuild-keygen -a -i cd /build clone or copy the package into /build … the APKBUILD file should be there - clone whole aports repo: git clone https://git.alpinelinux.org/aports - or git clone subpath abuild -r -F - -F to allow as root - -r installs dependencies for package to build - -K to keep build time files