Big script
This commit is contained in:
32
toolchain/scripts/137-gperf.sh
Executable file
32
toolchain/scripts/137-gperf.sh
Executable file
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
# ============================================================================
|
||||
# DarkForge Linux — Phase 3, Chapter 8.40: Gperf
|
||||
# ============================================================================
|
||||
# Purpose: Build gperf, a perfect hash function generator.
|
||||
# Optimizes keyword lookup tables used by compilers and tools.
|
||||
# Inputs: /sources/gperf-3.1.tar.gz
|
||||
# Outputs: gperf binary in /usr/bin/
|
||||
# Assumes: Running inside chroot
|
||||
# Ref: LFS 13.0 §8.40
|
||||
# ============================================================================
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
source /sources/toolchain-scripts/100-chroot-env.sh
|
||||
|
||||
PACKAGE="gperf"
|
||||
VERSION="3.1"
|
||||
|
||||
echo "=== Building ${PACKAGE}-${VERSION} (Phase 3) ==="
|
||||
|
||||
pkg_extract "${PACKAGE}-${VERSION}.tar.gz"
|
||||
cd "${PACKAGE}-${VERSION}"
|
||||
|
||||
./configure \
|
||||
--prefix=/usr
|
||||
|
||||
make
|
||||
make install
|
||||
|
||||
pkg_cleanup "${PACKAGE}-${VERSION}"
|
||||
echo "=== ${PACKAGE}-${VERSION} complete ==="
|
||||
Reference in New Issue
Block a user