35 lines
1.0 KiB
Bash
Executable File
35 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
# ============================================================================
|
|
# DarkForge Linux — Phase 3, Chapter 8.39: GDBM
|
|
# ============================================================================
|
|
# Purpose: Build GNU GDBM (GNU DataBase Manager), a hash database library.
|
|
# Required by Perl and other packages for persistent data storage.
|
|
# Inputs: /sources/gdbm-1.24.tar.gz
|
|
# Outputs: gdbm library and development files in /usr/
|
|
# Assumes: Running inside chroot
|
|
# Ref: LFS 13.0 §8.39
|
|
# ============================================================================
|
|
|
|
set -euo pipefail
|
|
|
|
source /sources/toolchain-scripts/100-chroot-env.sh
|
|
|
|
PACKAGE="gdbm"
|
|
VERSION="1.24"
|
|
|
|
echo "=== Building ${PACKAGE}-${VERSION} (Phase 3) ==="
|
|
|
|
pkg_extract "${PACKAGE}-${VERSION}.tar.gz"
|
|
cd "${PACKAGE}-${VERSION}"
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--disable-static \
|
|
--enable-libgdbm-compat
|
|
|
|
make
|
|
make install
|
|
|
|
pkg_cleanup "${PACKAGE}-${VERSION}"
|
|
echo "=== ${PACKAGE}-${VERSION} complete ==="
|