Documentation
¶
Overview ¶
Package parser provides PKGBUILD parsing and processing functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var OverridePkgRel string
OverridePkgRel is a variable that allows overriding the Pkgrel field in PKGBUILD. This can be useful for setting a custom package revision in CI, as a timestamp, for example.
var OverridePkgVer string
OverridePkgVer is a variable that allows overriding the PkgVer field in PKGBUILD. This can be useful for setting a custom package version.
Functions ¶
func ParseFile ¶
ParseFile parses a file and returns a PKGBUILD object and an error.
Parameters: - distro: the distribution name. - release: the release version. - startDir: the starting directory. - home: the home directory. - targetArch: the target architecture for cross-compilation (empty string for native).
Returns: - *pkgbuild.PKGBUILD: the parsed PKGBUILD object. - error: an error if any occurred during parsing.
Types ¶
This section is empty.