alpm-pkgbuild

Crates.ioalpm-pkgbuild
lib.rsalpm-pkgbuild
version0.1.0
created_at2025-07-24 14:59:30.517666+00
updated_at2025-07-24 14:59:30.517666+00
descriptionLibrary and command line tool for interacting with PKGBUILD files
homepagehttps://alpm.archlinux.page
repositoryhttps://gitlab.archlinux.org/archlinux/alpm/alpm
max_upload_size
id1766164
size81,147
David Runge (dvzrv)

documentation

README

alpm-pkgbuild

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.

Documentation

Where is this used?

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.

Library

Commit count: 0

cargo fmt