#!/bin/bash # ============================================================================ # DarkForge Linux — Phase 3, Chapter 8: groff # ============================================================================ # Purpose: Build groff (GNU Troff — document formatting system). # Used for rendering man pages and other documentation. # Inputs: /sources/groff-1.23.0.tar.gz # Outputs: groff tools in /usr/bin/, fonts and macros in /usr/share/groff/ # Assumes: Running inside chroot, X11 libraries NOT available (no X11 support) # Ref: LFS 13.0 §8.65 # ============================================================================ set -euo pipefail source /sources/toolchain-scripts/100-chroot-env.sh PACKAGE="groff" VERSION="1.23.0" echo "=== Building ${PACKAGE}-${VERSION} ===" cd /sources tar -xf "${PACKAGE}-${VERSION}.tar.gz" cd "${PACKAGE}-${VERSION}" # PAGE: Set to empty for DarkForge (page size defaults to US Letter) PAGE= ./configure --prefix=/usr make # Optional: run tests # make check || true make install cd /sources rm -rf "${PACKAGE}-${VERSION}" echo "=== ${PACKAGE}-${VERSION} complete ==="