Expand description
This library provides a standardized way for clients to parse makedeb-styled .SRCINFO
files.
These are the files found on the MPR that provide a method to know
the contents of a PKGBUILD file without having to source
(and thefore execute) it.
Most clients won’t need to use any of the SRCINFO_*
constants, but instead should use the
SrcInfo
struct to read a .SRCINFO
file.
Structs§
- Parser
Error - A struct representing the output of a parsing error.
- Split
Dependency - A Struct representing a dependeny string (i.e.
pkg1|pkg2>=5
). Note that any prefix such asp!
will be kept on the first package, and must be removed manually client-side. - Split
Package - A Struct representing a package’s name, operator, and version.
- SrcInfo
Constants§
- SRCINFO_
ARRAYS - A list of items that should always be arrays (i.e. any amount can be present) in a
.SRCINFO
file. - SRCINFO_
EXTENDED - A list of items that can be extended (e.g. prefixed with
focal_
or suffixed with_amd64
) in a.SRCINFO
file. - SRCINFO_
REQUIRED - A list of items that must always be present inside of a
.SRCINFO
file. - SRCINFO_
STRINGS - A list of items that should always be strings (i.e. a maximum of one can be present) in a
.SRCINFO
file.