pkgmeta

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildInput

type BuildInput struct {
	Output string `json:"out"`
	Bin    string `json:"bin"`
	Doc    string `json:"doc"`
	Etc    string `json:"etc"`
	Man    string `json:"man"`

	Systemd string  `json:"systemd,omitempty"`
	Openrc  *Openrc `json:"openrc,omitempty"`
}

func (BuildInput) String

func (b BuildInput) String() string

type InstalledFileCallback added in v0.8.0

type InstalledFileCallback func(files.Content) (*files.Content, error)

type Openrc added in v0.7.0

type Openrc struct {
	InitDir string `json:"initd"`
	ConfDir string `json:"confd"`
}

type Package

type Package struct {
	Name        string   `json:"name"`
	Version     string   `json:"version"`
	Description string   `json:"description"`
	Homepage    string   `json:"homepage"`
	Group       string   `json:"group"`
	License     string   `json:"license"`
	Platform    string   `json:"platform"` // if not set, default to linux
	Goarch      string   `json:"goarch"`
	Replaces    []string `json:"replaces"`
	Depends     []string `json:"depends"`
	Recommends  []string `json:"recommends"`

	EmptyDirs     []string          `json:"emptyDirs"`     // rpm destination path
	ConfigFiles   map[string]string `json:"configFiles"`   // pwd-relative source path, rpm destination path
	Documentation map[string]string `json:"documentation"` // pwd-relative source path, file in /usr/share/doc/$Name
	Files         map[string]string `json:"files"`         // pwd-relative source path, rpm destination path

	Build    func(BuildInput)     `json:"build"`
	Filename func(Package) string `json:"mkFilename"`
}

func (Package) CopyConfigFiles added in v0.8.0

func (p Package) CopyConfigFiles() files.Contents

func (Package) CopyDocumentation added in v0.8.0

func (p Package) CopyDocumentation() files.Contents

func (Package) CopyEmptyDirs added in v0.8.0

func (p Package) CopyEmptyDirs(mode os.FileMode) files.Contents

func (Package) CopyFiles added in v0.8.0

func (p Package) CopyFiles() files.Contents

func (Package) CopyTree added in v0.8.0

func (p Package) CopyTree(dir string) (files.Contents, error)

Jump to

Keyboard shortcuts

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