Big script

This commit is contained in:
2026-03-20 15:09:30 +01:00
parent dc2ac2f768
commit a2ca02a856
92 changed files with 5842 additions and 0 deletions

32
toolchain/scripts/171-jinja2.sh Executable file
View File

@@ -0,0 +1,32 @@
#!/bin/bash
# ============================================================================
# DarkForge Linux — Phase 3, Chapter 8: jinja2
# ============================================================================
# Purpose: Build Jinja2 (Python templating engine).
# Required by meson and other build tools for code generation.
# Inputs: /sources/jinja2-3.1.6.tar.gz
# Outputs: Python package installed to /usr/lib/python3.x/
# Assumes: Running inside chroot, Python3 and MarkupSafe installed
# Ref: LFS 13.0 §8.77
# ============================================================================
set -euo pipefail
source /sources/toolchain-scripts/100-chroot-env.sh
PACKAGE="Jinja2"
VERSION="3.1.6"
PKG_LOWER="jinja2"
echo "=== Building ${PACKAGE}-${VERSION} ==="
cd /sources
tar -xf "${PKG_LOWER}-${VERSION}.tar.gz"
cd "${PKG_LOWER}-${VERSION}"
# Use pip to install
pip3 install --no-build-isolation .
cd /sources
rm -rf "${PKG_LOWER}-${VERSION}"
echo "=== ${PACKAGE}-${VERSION} complete ==="