pacman-repo-builder 0.0.0-rc.27

Build a custom pacman repository from a collection of PKGBUILD directories
Documentation

PacMan Repo Builder

Test Crates.io Version

Build a custom pacman repository from a collection of PKGBUILD directories.

Usage

⚠ WARNING: This program is meant to be used within a docker container.

Generate manifest file

Manifest file is always named build-pacman-repo.yaml. It contains instruction to build a pacman repository.

build-pacman-repo print-config -T $repo_dir/$repo_name.db.tar.gz -D build-directories > build-pacman-repo.yaml

Note: Replace $repo_dir with path of your repository directory. This directory would contains all built packages. Note: Replace $repo_name with name of your repository file. This file would be fetched by pacman to check for updates.

Replace /usr/bin/makepkg with one that allows running as root

The normal makepkg script does not allow running as root. While it may make sense in a user's machine, it inconveniences a Docker container.

build-pacman-repo patch-makepkg --replace

Build a pacman repositories

build-pacman-repo build --syncdeps

Note: Make sure that build-pacman-repo.yaml file exists in current working directory.

Print help message

build-pacman-repo help
build-pacman-repo --help
build-pacman-repo help $command
build-pacman-repo $command --help

GitHub Action

pacman-repo-builder/action let you run build-pacman-repo on an Arch Linux container.

License

GPLv3 © Hoàng Văn Khải.