AOSC Wiki / Developer / Automation / .
Also available in: 简体中文

Packaging Metadata Syntax

Reduced Bash syntax for describing packages

Information Circle
This RFC has been succeeded by ACBS Package Metadata Language.

RFC: Packaging Metadata Syntax§

The spec and defines files currently use Bash syntax to define package metadata, which is not easy to parse strictly according to the Bash Reference Manual. Therefore, we propose the use of a reduce set of Bash syntax to reduce parsing and transition cost, as packaging tools will be refactored in languages other than Bash.


PKGDEP="x11-lib libdrm expat systemd elfutils libvdpau nettle \
        libva wayland s2tc lm-sensors libglvnd llvm-runtime libclc"
MESON_AFTER="-Ddri-drivers-path=/usr/lib/xorg/modules/dri \
             ${MESON_AFTER} \

Permitted Bash Syntax§

Prohibited Bash Syntax§

All recursion is not allowed.


Pattern Matching is only used in ${parameter/pattern/string}. Only * and ? is supported.