Skip to content

CachyOS/pkg-manage-util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pkg-manage-util

A command-line utility for managing pacman package builds for Arch Linux. This tool allows for cloning packages from the Arch Linux repositories and other git repositories, and building them in a clean chroot environment.

Features

  • Clone packages from Arch Linux repositories.
  • Clone any git repository.
  • Build packages in a clean chroot.
  • Dump the default configuration.

Installation

Install from source using cargo:

git clone https://github.com/cachyos/pkg-manage-util.git
cd pkg-manage-util
cargo install --path .

Setup

Before you can start building packages with the default configuration, you need to prepare working directories. Run the following commands to create the necessary directories and set the correct permissions:

sudo mkdir -p /var/lib/pkg-manage-util/chroots
sudo chown $USER -R /var/lib/pkg-manage-util

Usage

Clone a package from Arch Linux repositories

pkg-manage-util clone-arch-repo <pkgbase> [version]
  • <pkgbase>: The name of the package to clone.
  • [version]: The specific version of the package to clone (optional).

Clone a git repository

pkg-manage-util clone-git-repo <git_url> <dest_path> [--depth <depth>] [-b <branch>]
  • <git_url>: The URL of the git repository to clone.
  • <dest_path>: The destination path to clone the repository to.
  • --depth <depth>: The depth of the repository to clone (optional).
  • -b <branch>: The branch to clone (optional).

Build a package

pkg-manage-util build [pkgbuild_path]
  • [pkgbuild_path]: The path to the PKGBUILD file (optional). If not provided, it will search for a PKGBUILD in the current directory.

Dump the default configuration

pkg-manage-util dump-config

This will print the default configuration to stdout. You can redirect this to a file to create a custom configuration file.

License

This project is licensed under the GPL-3.0-or-later. See the LICENSE file for details.

About

A command-line utility for managing pacman package builds

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages