dpkg

package
v0.0.0-...-efab2a5 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DebArchs = map[string]string{
	"any":     "all",
	"x86_64":  "amd64",
	"i686":    "386",
	"aarch64": "arm64",
	"armv7h":  "arm7",
	"armv6h":  "arm6",
	"arm":     "arm5",
}

Functions

This section is empty.

Types

type Deb

type Deb struct {
	PKGBUILD *pkgbuild.PKGBUILD
	// contains filtered or unexported fields
}

Deb 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 (*Deb) Build

func (d *Deb) Build(artifactsPath string) error

Build builds the Deb package.

It takes the artifactsPath as a parameter and returns an error if any.

func (*Deb) Install

func (d *Deb) Install(artifactsPath string) error

func (*Deb) Prepare

func (d *Deb) Prepare(makeDepends []string) error

Prepare prepares the Deb package by installing its dependencies using apt-get.

makeDepends: a slice of strings representing the dependencies to be installed. Returns an error if there was a problem installing the dependencies.

func (*Deb) PrepareEnvironment

func (d *Deb) PrepareEnvironment(golang bool) error

PrepareEnvironment prepares the environment for the Deb package.

It takes a boolean parameter `golang` which indicates whether or not to set up Go. It returns an error if there was a problem during the environment preparation.

func (*Deb) Strip

func (d *Deb) Strip() error

Strip strips binaries from the Deb package.

It does not take any parameters. It returns an error if there is any issue during stripping.

func (*Deb) Update

func (d *Deb) Update() error

Update updates the Deb package list.

It calls the GetUpdates method of the PKGBUILD field of the Deb struct to retrieve any updates using the "apt-get" command and the "update" argument. If an error occurs during the update, it is returned.

Returns: - error: An error if the update fails.

Jump to

Keyboard shortcuts

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