#!/bin/bash # ============================================================================ # DarkForge Linux — Phase 3, Chapter 8.43: Less # ============================================================================ # Purpose: Build less, a text pager utility for reading files and manual pages. # Essential for viewing documentation and log files. # Inputs: /sources/less-668.tar.gz # Outputs: less pager binary in /usr/bin/ # Assumes: Running inside chroot # Ref: LFS 13.0 §8.43 # ============================================================================ set -euo pipefail source /sources/toolchain-scripts/100-chroot-env.sh PACKAGE="less" VERSION="668" echo "=== Building ${PACKAGE}-${VERSION} (Phase 3) ===" pkg_extract "${PACKAGE}-${VERSION}.tar.gz" cd "${PACKAGE}-${VERSION}" ./configure \ --prefix=/usr \ --sysconfdir=/etc make make install pkg_cleanup "${PACKAGE}-${VERSION}" echo "=== ${PACKAGE}-${VERSION} complete ==="