alpm-srcinfo-create(1) General Commands Manual alpm-srcinfo-create(1)

alpm-srcinfo-create - Create a SRCINFO file from a PKGBUILD file at a given path

alpm-srcinfo create [-o|--output-format] [-p|--pretty] [-h|--help] <FILE>

Create a SRCINFO file from a PKGBUILD file at a given path.

If the PKGBUILD can be created and validated, the program exits with no output and a return code of 0. If the file is missing or can not be validated, an error is emitted on stderr and the program exits with a non-zero exit status.

Provide the output format

Possible values:

  • json: The JSON output format
  • srcinfo: The SRCINFO output format
Pretty-print the output.

Only applies to formats that support pretty output and is otherwise ignored.

Print help (see a summary with '-h')
<FILE>
An optional input file path to read from

If no file is specified, stdin is read from and expected to contain PKGINFO data to validate.

alpm-srcinfo-create