Documentation
¶
Overview ¶
Package deb provides Debian package building functionality and constants.
Package deb provides functionality for building Debian (.deb) packages from PKGBUILD specifications.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Package ¶
type Package struct {
*common.BaseBuilder
// contains filtered or unexported fields
}
Package represents a Deb package.
It contains the directory path of the package and the PKGBUILD struct, which contains the metadata and build instructions for the package.
func NewBuilder ¶
NewBuilder creates a new Debian package manager with optional compression setting. If compression is empty, defaults to "zstd".
func (*Package) BuildPackage ¶
BuildPackage builds the Debian package and cleans up afterward. It takes artifactsPath to specify where to store the package. The method calls dpkgDeb to create the package and removes the package directory, returning the path to the created DEB file and an error if any step fails.
func (*Package) PrepareFakeroot ¶
PrepareFakeroot sets up the environment for building a Debian package in a fakeroot context. It retrieves architecture and release information, cleans up the debDir, creates necessary resources, and strips binaries. The method returns an error if any step fails.