33 lines
1.0 KiB
Bash
Executable File
33 lines
1.0 KiB
Bash
Executable File
#!/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 ==="
|