32 lines
1018 B
Bash
Executable File
32 lines
1018 B
Bash
Executable File
#!/bin/bash
|
|
# ============================================================================
|
|
# DarkForge Linux — Phase 3, Chapter 8.45: XML::Parser
|
|
# ============================================================================
|
|
# Purpose: Build Perl's XML::Parser module, a Perl interface to Expat.
|
|
# Required for intltool and other XML-processing Perl scripts.
|
|
# Inputs: /sources/XML-Parser-2.47.tar.gz (Perl module)
|
|
# Outputs: Perl module installed to /usr/lib/perl5/
|
|
# Assumes: Running inside chroot, perl already built
|
|
# Ref: LFS 13.0 §8.45
|
|
# ============================================================================
|
|
|
|
set -euo pipefail
|
|
|
|
source /sources/toolchain-scripts/100-chroot-env.sh
|
|
|
|
PACKAGE="XML-Parser"
|
|
VERSION="2.47"
|
|
|
|
echo "=== Building ${PACKAGE}-${VERSION} (Phase 3) ==="
|
|
|
|
pkg_extract "${PACKAGE}-${VERSION}.tar.gz"
|
|
cd "${PACKAGE}-${VERSION}"
|
|
|
|
perl Makefile.PL
|
|
make
|
|
make test || true
|
|
make install
|
|
|
|
pkg_cleanup "${PACKAGE}-${VERSION}"
|
|
echo "=== ${PACKAGE}-${VERSION} complete ==="
|