deb

package
v2.1.0 Latest Latest
Warning

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

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

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

func NewBuilder(pkgBuild *pkgbuild.PKGBUILD, compression string) *Package

NewBuilder creates a new Debian package manager with optional compression setting. If compression is empty, defaults to "zstd".

func (*Package) BuildPackage

func (d *Package) BuildPackage(ctx context.Context, artifactsPath string, targetArch string) (string, error)

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

func (d *Package) PrepareFakeroot(ctx context.Context, _ string, targetArch string) error

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.

Jump to

Keyboard shortcuts

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