alpm-srcinfo
A library and command line tool for the specification, parsing and linting of Arch Linux Package Management (ALPM) SRCINFO files.
SRCINFO files describe a PKGBUILD file in a way that doesn't require an interactive shell to evaluate it.
Documentation
- https://alpm.archlinux.page/alpm-srcinfo/ARCHITECTURE.html A high-level overview on how this project works.
- https://alpm.archlinux.page/rustdoc/alpm_srcinfo/ for development version of the crate
- https://docs.rs/alpm-srcinfo/latest/alpm_srcinfo/ for released versions of the crate
Examples
Commandline
Inspect SRCINFO packages
The following command takes a .SRCINFO file and outputs the merged and compiled details of all (split-)packages for a specific architecture as structured data.
PKGBUILD to SRCINFO conversion
The following command takes a PKGBUILD file and outputs a .SRCINFO from the extracted metadata.
Library
use ;
use ;
#
Features
cliadds the commandline handling needed for thealpm-srcinfobinary (enabled by default)._winnow-debugenables thewinnow/debugfeature, which shows the exact parsing process of winnow.
Contributing
Please refer to the contribution guidelines to learn how to contribute to this project.
License
This project can be used under the terms of the Apache-2.0 or MIT. Contributions to this project, unless noted otherwise, are automatically licensed under the terms of both of those licenses.