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

View File

@@ -0,0 +1,36 @@
#!/bin/bash
# ============================================================================
# DarkForge Linux — Phase 3, Chapter 8.34: Gettext
# ============================================================================
# Purpose: Build GNU gettext, the internationalization and localization
# infrastructure. Provides msgfmt, xgettext, and localization tools.
# Inputs: /sources/gettext-1.0.tar.xz
# Outputs: gettext binaries, libraries, and locale data in /usr/
# Assumes: Running inside chroot
# Ref: LFS 13.0 §8.34
# ============================================================================
set -euo pipefail
source /sources/toolchain-scripts/100-chroot-env.sh
PACKAGE="gettext"
VERSION="1.0"
echo "=== Building ${PACKAGE}-${VERSION} (Phase 3) ==="
pkg_extract "${PACKAGE}-${VERSION}.tar.xz"
cd "${PACKAGE}-${VERSION}"
./configure \
--prefix=/usr \
--disable-static
make
make install
# Verify msgfmt is available
msgfmt --version || { echo "ERROR: msgfmt not found"; exit 1; }
pkg_cleanup "${PACKAGE}-${VERSION}"
echo "=== ${PACKAGE}-${VERSION} complete ==="