Hello everyone,
I’m excited to introduce a new project that streamlines bootstrapping Arch Linux and building its packages. This project provides an alternative to the traditional makepkg script by leveraging the Zig build system.
We are using the zon (Zig Object Notation) format for package builds, with the Zig build system constructing the build graph. The project utilizes zig cc for cross-compiling and alpm (Arch Linux Package Manager library) to bootstrap a chroot for a clean build environment.
This is a work-in-progress, composed of the following Zig sub-projects:
- zports: The
zonbuildroot using the Zig build system. - makepkg: Zig build steps to generate Arch Linux packages, used in
zports. - alpm-zig: A Zig library for the Arch Linux package manager, used to bootstrap the chroot environment.
- container: A module for creating an unprivileged chroot environment to build packages and install missing dependencies.
Contributions are welcome. You can find the projects on GitHub:
- zports: GitHub - zig-pkgs/zports: zon ports collection
- makepkg: GitHub - zig-pkgs/makepkg: alpm makepkg implementation in zig
- alpm-zig: GitHub - zig-pkgs/alpm-zig
- container: GitHub - zig-pkgs/container: A lightweight, self-contained Zig module for running functions within an isolated, root-privileged Linux container.