| Crates.io | alpm-pkgbuild |
| lib.rs | alpm-pkgbuild |
| version | 0.1.0 |
| created_at | 2025-07-24 14:59:30.517666+00 |
| updated_at | 2025-07-24 14:59:30.517666+00 |
| description | Library and command line tool for interacting with PKGBUILD files |
| homepage | https://alpm.archlinux.page |
| repository | https://gitlab.archlinux.org/archlinux/alpm/alpm |
| max_upload_size | |
| id | 1766164 |
| size | 81,147 |
A library to interact with PKGBUILD files used in Arch Linux Package Management (ALPM).
A PKGBUILD file is a bash script, that describe all necessary steps and data for creating an alpm-package. It contains metadata and instructions that may describe a single alpm-package, an alpm-meta-package, or one or more alpm-split-packages, built for potentially multiple architectures.
This crate contains functionality to extract relevant metadata from a PKGBUILD file and convert it to a SRCINFO file.
The SRCINFO file creation depends on the alpm-pkgbuild-bridge script and package.
Make sure to install it beforehand or have it somewhere in your $PATH.
This crate is intended solely for use by the alpm-srcinfo crate.
alpm-pkgbuild produces an intermediate representation of a PKGBUILD file, which is then handled and converted into a proper SourceInfoV1 struct by the alpm-srcinfo crate.
As alpm-pkgbuild is designed to be used in conjunction with the alpm-srcinfo crate, the tests for the bridge logic of this crate also live in the alpm-srcinfo project.