parser

package
v2.4.3 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package parser provides PKGBUILD parsing and processing functionality.

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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

func ParseFile(distro, release, startDir, home, targetArch string) (*pkgbuild.PKGBUILD, error)

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.

Jump to

Keyboard shortcuts

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