Big script
This commit is contained in:
36
toolchain/scripts/131-gettext.sh
Executable file
36
toolchain/scripts/131-gettext.sh
Executable 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 ==="
|
||||
Reference in New Issue
Block a user