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 ¶
NewBuilder creates a new Pacman package builder.
func (*Pkg) BuildPackage ¶
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 ¶
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.