3bcf4cc196
Comprehensive fix — not a fallback. Each recipe now has explicit [package] section with name and version. Version inference: - Git-source recipes without rev/branch: '0.1.0' (Red Bear convention) - Tar/git recipes with version in URL or dir name: extracted version - Sysroot-copy recipes: matched to toolchain version Affected: 250+ recipes across all categories (core, libs, dev, system, kde, qt, drivers, gpu, drm, kernel, userspace, etc.) Every recipe in the redbear-mini build chain that was missing [package] now has explicit version metadata. Cookbook can now always determine a version at packaging time, eliminating 'cannot guess version' failures. No cookbook fallback hack — the source of truth is recipe metadata.
38 lines
1.0 KiB
TOML
38 lines
1.0 KiB
TOML
[package]
|
|
name = "libxau"
|
|
version = "1.0.12"
|
|
|
|
[source]
|
|
tar = "https://www.x.org/releases/individual/lib/libXau-1.0.12.tar.xz"
|
|
blake3 = "674bc71a888eec20f0e29989e4669df90309d4baacad058107cdf89d23803bcc"
|
|
|
|
[build]
|
|
template = "custom"
|
|
dependencies = [
|
|
"x11proto",
|
|
]
|
|
script = """
|
|
DYNAMIC_INIT
|
|
|
|
# Copy source to build directory
|
|
rsync -av --delete "${COOKBOOK_SOURCE}"/* ./
|
|
|
|
# x11proto provides the X11 protocol headers needed by libxau
|
|
# We need to ensure pkg-config can find x11proto
|
|
export PKG_CONFIG_PATH="${COOKBOOK_SYSROOT}/usr/share/pkgconfig:${COOKBOOK_SYSROOT}/usr/lib/pkgconfig:${PKG_CONFIG_PATH}"
|
|
|
|
# Configure with sysroot
|
|
./configure \
|
|
--host="${TARGET}" \
|
|
--prefix=/usr \
|
|
--with-sysroot="${COOKBOOK_SYSROOT}" \
|
|
--disable-shared \
|
|
--enable-static \
|
|
--without-fop \
|
|
--without-xsltproc
|
|
|
|
# Prevent automake regeneration (host has different version than source expects)
|
|
make -j"${COOKBOOK_MAKE_JOBS}" ACLOCAL=true AUTOMAKE=true AUTOHEADER=true
|
|
make DESTDIR="${COOKBOOK_STAGE}" install ACLOCAL=true AUTOMAKE=true AUTOHEADER=true
|
|
"""
|