This document shows how to use Arch Packaging Container to build Arch Linux packages.
PKGBUILD
makepkg
./pkg/PKGBUILD
Create the build folder and grant write permission to all:
mkdir build chmod 777 build
Run the container:
podman run --rm -v ./pkg:/pkg:ro -v ./build:/build code.fosterhangdaan.com/foster/arch-packaging-container:latest
When the build is finished, the compressed package will be stored in build/packages.
build/packages
Example for a Rust build environment.
Create a volume to store Rust crates:
podman volume create cargo
podman run --rm -v ./pkg:/pkg:ro -v ./build:/build -v cargo:/home/builder/.cargo code.fosterhangdaan.com/foster/arch-packaging-container:latest
Deleting the wiki page "Usage" cannot be undone. Continue?