Big script
This commit is contained in:
35
toolchain/scripts/129-sed.sh
Executable file
35
toolchain/scripts/129-sed.sh
Executable file
@@ -0,0 +1,35 @@
|
||||
#!/bin/bash
|
||||
# ============================================================================
|
||||
# DarkForge Linux — Phase 3, Chapter 8.32: Sed
|
||||
# ============================================================================
|
||||
# Purpose: Build GNU sed, a stream editor for filtering and transforming text.
|
||||
# Essential for many build scripts and system utilities.
|
||||
# Inputs: /sources/sed-4.9.tar.xz
|
||||
# Outputs: sed binary in /usr/bin/
|
||||
# Assumes: Running inside chroot
|
||||
# Ref: LFS 13.0 §8.32
|
||||
# ============================================================================
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
source /sources/toolchain-scripts/100-chroot-env.sh
|
||||
|
||||
PACKAGE="sed"
|
||||
VERSION="4.9"
|
||||
|
||||
echo "=== Building ${PACKAGE}-${VERSION} (Phase 3) ==="
|
||||
|
||||
pkg_extract "${PACKAGE}-${VERSION}.tar.xz"
|
||||
cd "${PACKAGE}-${VERSION}"
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--bindir=/bin
|
||||
|
||||
make
|
||||
make html
|
||||
make install
|
||||
make -C doc install-html
|
||||
|
||||
pkg_cleanup "${PACKAGE}-${VERSION}"
|
||||
echo "=== ${PACKAGE}-${VERSION} complete ==="
|
||||
Reference in New Issue
Block a user