Files
darkforge/toolchain/scripts/138-expat.sh
2026-03-20 15:09:30 +01:00

34 lines
968 B
Bash
Executable File

#!/bin/bash
# ============================================================================
# DarkForge Linux — Phase 3, Chapter 8.41: Expat
# ============================================================================
# Purpose: Build Expat, an XML parsing library.
# Required for XML processing by many tools and libraries.
# Inputs: /sources/expat-2.7.1.tar.xz
# Outputs: expat library and development files in /usr/
# Assumes: Running inside chroot
# Ref: LFS 13.0 §8.41
# ============================================================================
set -euo pipefail
source /sources/toolchain-scripts/100-chroot-env.sh
PACKAGE="expat"
VERSION="2.7.1"
echo "=== Building ${PACKAGE}-${VERSION} (Phase 3) ==="
pkg_extract "${PACKAGE}-${VERSION}.tar.xz"
cd "${PACKAGE}-${VERSION}"
./configure \
--prefix=/usr \
--disable-static
make
make install
pkg_cleanup "${PACKAGE}-${VERSION}"
echo "=== ${PACKAGE}-${VERSION} complete ==="