33 lines
941 B
Bash
Executable File
33 lines
941 B
Bash
Executable File
#!/bin/bash
|
|
# ============================================================================
|
|
# DarkForge Linux — Phase 3, Chapter 8.35: Bison
|
|
# ============================================================================
|
|
# Purpose: Build GNU Bison, a general-purpose parser generator.
|
|
# Required for gcc and other packages to build.
|
|
# Inputs: /sources/bison-3.8.2.tar.xz
|
|
# Outputs: bison binary and libraries in /usr/
|
|
# Assumes: Running inside chroot
|
|
# Ref: LFS 13.0 §8.35
|
|
# ============================================================================
|
|
|
|
set -euo pipefail
|
|
|
|
source /sources/toolchain-scripts/100-chroot-env.sh
|
|
|
|
PACKAGE="bison"
|
|
VERSION="3.8.2"
|
|
|
|
echo "=== Building ${PACKAGE}-${VERSION} (Phase 3) ==="
|
|
|
|
pkg_extract "${PACKAGE}-${VERSION}.tar.xz"
|
|
cd "${PACKAGE}-${VERSION}"
|
|
|
|
./configure \
|
|
--prefix=/usr
|
|
|
|
make
|
|
make install
|
|
|
|
pkg_cleanup "${PACKAGE}-${VERSION}"
|
|
echo "=== ${PACKAGE}-${VERSION} complete ==="
|