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

View File

@@ -0,0 +1,32 @@
#!/bin/bash
# ============================================================================
# DarkForge Linux — Phase 3, Chapter 8: markupsafe
# ============================================================================
# Purpose: Build MarkupSafe (Python library for safe string escaping).
# Dependency for Jinja2, which is needed for various build tools.
# Inputs: /sources/markupsafe-3.0.2.tar.gz
# Outputs: Python package installed to /usr/lib/python3.x/
# Assumes: Running inside chroot, Python3 installed
# Ref: LFS 13.0 §8.76
# ============================================================================
set -euo pipefail
source /sources/toolchain-scripts/100-chroot-env.sh
PACKAGE="MarkupSafe"
VERSION="3.0.2"
PKG_LOWER="markupsafe"
echo "=== Building ${PACKAGE}-${VERSION} ==="
cd /sources
tar -xf "${PKG_LOWER}-${VERSION}.tar.gz"
cd "${PKG_LOWER}-${VERSION}"
# Use pip to install in editable mode for development
pip3 install --no-build-isolation .
cd /sources
rm -rf "${PKG_LOWER}-${VERSION}"
echo "=== ${PACKAGE}-${VERSION} complete ==="