pacman

package
v1.3.15 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadSources added in v1.1.5

func DownloadSources(pkgbase string) error

func GetPkgbuildVar added in v1.1.1

func GetPkgbuildVar(pkgbase string, varname string) (string, error)

func GetPkgbuildVars added in v1.1.1

func GetPkgbuildVars(pkgbase string, varname string) ([]string, error)

func IsVersionNewer

func IsVersionNewer(oldVersion string, newVersion string) (bool, error)

Types

type PkgInfo added in v1.3.0

type PkgInfo struct {
	Pkgbase   string
	Pkgname   []string
	Pkgver    string
	Pkgrel    int
	Epoch     int
	Pkgdesc   string
	Url       string
	Install   string
	Changelog string

	Arch         []string
	Groups       []string
	License      []string
	NoExtract    []string
	Options      []string
	Backup       []string
	ValidPgpKeys []string

	Source       []PkgInfoArchItem
	Depends      []PkgInfoArchItem
	CheckDepends []PkgInfoArchItem
	MakeDepends  []PkgInfoArchItem
	OptDepends   []PkgInfoArchItem
	Provides     []PkgInfoArchItem
	Conflicts    []PkgInfoArchItem
	Replaces     []PkgInfoArchItem
	CkSums       []PkgInfoArchItem
	Md5Sums      []PkgInfoArchItem
	Sha1Sums     []PkgInfoArchItem
	Sha224Sums   []PkgInfoArchItem
	Sha256Sums   []PkgInfoArchItem
	Sha384Sums   []PkgInfoArchItem
	Sha512Sums   []PkgInfoArchItem
	B2Sums       []PkgInfoArchItem
}

func LoadPkgInfo added in v1.3.0

func LoadPkgInfo(pkgbase string) (*PkgInfo, error)

func (*PkgInfo) GetAllBuildDepends added in v1.3.0

func (pkginfo *PkgInfo) GetAllBuildDepends(arch ...string) []string

func (*PkgInfo) GetFullVersion added in v1.3.0

func (pkginfo *PkgInfo) GetFullVersion() string

func (*PkgInfo) Load added in v1.3.0

func (pkginfo *PkgInfo) Load(lines []string) error

type PkgInfoArchItem added in v1.3.0

type PkgInfoArchItem struct {
	Arch  string
	Value string
}

type Source added in v1.1.5

type Source struct {
	Folder        string
	VcsType       string
	Url           string
	FragmentType  string
	FragmentValue string
	Original      string
}

func ParseSource added in v1.1.5

func ParseSource(source string) (*Source, error)

func (*Source) GetFolder added in v1.1.5

func (source *Source) GetFolder() string

func (*Source) String added in v1.1.5

func (source *Source) String() string

Jump to

Keyboard shortcuts

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