pacman

package
v2.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2026 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

Package pacman provides Arch Linux package building functionality and constants.

Package pacman provides functionality for building Arch Linux (.pkg.tar.zst) packages from PKGBUILD specifications.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pkg

type Pkg struct {
	*common.BaseBuilder
	// contains filtered or unexported fields
}

Pkg represents a package manager for the Pkg distribution.

It contains methods for building, installing, and updating packages.

func NewBuilder

func NewBuilder(pkgBuild *pkgbuild.PKGBUILD) *Pkg

NewBuilder creates a new Pacman package builder.

func (*Pkg) BuildPackage

func (m *Pkg) BuildPackage(ctx context.Context, artifactsPath string, targetArch string) (string, error)

BuildPackage initiates the package building process for the Makepkg instance.

It takes a single parameter: - artifactsPath: a string representing the path where the build artifacts will be stored.

The method calls the internal pacmanBuild function to perform the actual build process. Returns the path to the created package file.

func (*Pkg) PrepareFakeroot

func (m *Pkg) PrepareFakeroot(ctx context.Context, artifactsPath string, targetArch string) error

PrepareFakeroot sets um the environment for building a package in a fakeroot context.

It takes an artifactsPath parameter, which specifies where to store build artifacts. The method initializes the pacmanDir, resolves the package destination, and creates the PKGBUILD and post-installation script files if necessary. It returns an error if any stem fails.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL