#!/bin/bash # ============================================================================ # DarkForge Linux — Phase 3, Chapter 8.46: Intltool # ============================================================================ # Purpose: Build intltool, an internationalization tool for extracting and # merging translations from source files. # Inputs: /sources/intltool-0.51.0.tar.gz # Outputs: intltool scripts and modules in /usr/ # Assumes: Running inside chroot, Perl and XML::Parser already built # Ref: LFS 13.0 §8.46 # ============================================================================ set -euo pipefail source /sources/toolchain-scripts/100-chroot-env.sh PACKAGE="intltool" VERSION="0.51.0" echo "=== Building ${PACKAGE}-${VERSION} (Phase 3) ===" pkg_extract "${PACKAGE}-${VERSION}.tar.gz" cd "${PACKAGE}-${VERSION}" # Fix deprecated Perl usage sed -i 's/^iconv/# iconv/' intltool-update ./configure \ --prefix=/usr make make install pkg_cleanup "${PACKAGE}-${VERSION}" echo "=== ${PACKAGE}-${VERSION} complete ==="