Big script

This commit is contained in:
2026-03-20 15:09:30 +01:00
parent dc2ac2f768
commit a2ca02a856
92 changed files with 5842 additions and 0 deletions

38
toolchain/scripts/160-groff.sh Executable file
View File

@@ -0,0 +1,38 @@
#!/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 ==="