33 lines
1.0 KiB
Bash
Executable File
33 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
# ============================================================================
|
|
# DarkForge Linux — Phase 3, Chapter 8.59: Meson
|
|
# ============================================================================
|
|
# Purpose: Build Meson, a modern build system designed to be user-friendly.
|
|
# Used by many packages including mesa, wayland, and others.
|
|
# Inputs: /sources/meson-1.7.0.tar.gz
|
|
# Outputs: Meson Python module and meson command in /usr/
|
|
# Assumes: Running inside chroot, Python, ninja, and setuptools already built
|
|
# Ref: LFS 13.0 §8.59
|
|
# ============================================================================
|
|
|
|
set -euo pipefail
|
|
|
|
source /sources/toolchain-scripts/100-chroot-env.sh
|
|
|
|
PACKAGE="meson"
|
|
VERSION="1.7.0"
|
|
|
|
echo "=== Building ${PACKAGE}-${VERSION} (Phase 3) ==="
|
|
|
|
pkg_extract "${PACKAGE}-${VERSION}.tar.gz"
|
|
cd "${PACKAGE}-${VERSION}"
|
|
|
|
python3 -m pip install \
|
|
--no-build-isolation \
|
|
--no-index \
|
|
--upgrade \
|
|
.
|
|
|
|
pkg_cleanup "${PACKAGE}-${VERSION}"
|
|
echo "=== ${PACKAGE}-${VERSION} complete ==="
|