arch

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(ctx context.Context, c *Config) error

Types

type Config

type Config struct {
	RepoName   string
	Source     *source.Source
	Version    string
	Prerelease bool
	Target     target.Target
	PGPKey     *pgp.PrivateKey
}

type Files

type Files struct {
	Files string `desc:"FILES" pkginfo:"-"`
}

Files holds the list of files in a package.

type Package

type Package struct {
	Filename       string   `desc:"FILENAME"    pkginfo:"-"`
	Name           string   `desc:"NAME"        pkginfo:"pkgname"`
	Base           string   `desc:"BASE"        pkginfo:"pkgbase"`
	Version        string   `desc:"VERSION"     pkginfo:"pkgver"`
	Desc           string   `desc:"DESC"        pkginfo:"pkgdesc"`
	CompressedSize int64    `desc:"CSIZE"       pkginfo:"-"`
	InstalledSize  int64    `desc:"ISIZE"       pkginfo:"size"`
	SHA256Sum      [32]byte `desc:"SHA256SUM"   pkginfo:"-"`
	URL            string   `desc:"URL"         pkginfo:"url"`
	License        string   `desc:"LICENSE"     pkginfo:"license"`
	Arch           string   `desc:"ARCH"        pkginfo:"arch"`
	BuildDate      string   `desc:"BUILDDATE"   pkginfo:"builddate"`
	Packager       string   `desc:"PACKAGER"    pkginfo:"packager"`
	Replaces       []string `desc:"REPLACES"    pkginfo:"replaces"`
	Conflicts      []string `desc:"CONFLICTS"   pkginfo:"conflict"`
	Provides       []string `desc:"PROVIDES"    pkginfo:"provides"`
	Depends        []string `desc:"DEPENDS"     pkginfo:"depend"`
	OptDepends     []string `desc:"OPTDEPENDS"  pkginfo:"optdepend"`
	MakeDepends    []string `desc:"MAKEDEPENDS" pkginfo:"makedepend"`
}

Package holds minimal metadata for a package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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