Big script
This commit is contained in:
39
toolchain/scripts/117-pkgconf.sh
Executable file
39
toolchain/scripts/117-pkgconf.sh
Executable file
@@ -0,0 +1,39 @@
|
||||
#!/bin/bash
|
||||
# ============================================================================
|
||||
# DarkForge Linux — Phase 3, Chapter 8.20: pkgconf
|
||||
# ============================================================================
|
||||
# Purpose: Build pkgconf, a lightweight pkg-config replacement for querying
|
||||
# package metadata and compiler/linker flags.
|
||||
# Inputs: /sources/pkgconf-2.4.3.tar.gz
|
||||
# Outputs: pkgconf binary and pkg-config symlink in /usr/bin
|
||||
# Ref: LFS 13.0 §8.20
|
||||
# ============================================================================
|
||||
|
||||
set -euo pipefail
|
||||
source /sources/toolchain-scripts/100-chroot-env.sh
|
||||
|
||||
PACKAGE="pkgconf"
|
||||
VERSION="2.4.3"
|
||||
|
||||
echo "=== Building ${PACKAGE}-${VERSION} (Phase 3) ==="
|
||||
|
||||
pkg_extract "${PACKAGE}-${VERSION}.tar.gz"
|
||||
cd "${PACKAGE}-${VERSION}"
|
||||
|
||||
# Configure pkgconf with standard prefix
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--disable-static
|
||||
|
||||
make
|
||||
make install
|
||||
|
||||
# Create pkg-config symlink for compatibility with scripts expecting pkg-config
|
||||
ln -sv pkgconf /usr/bin/pkg-config
|
||||
|
||||
# Verify installation
|
||||
echo "pkgconf version: $(/usr/bin/pkgconf --version)"
|
||||
|
||||
cd "${SRCDIR}"
|
||||
pkg_cleanup "${PACKAGE}-${VERSION}"
|
||||
echo "=== ${PACKAGE}-${VERSION} complete ==="
|
||||
Reference in New Issue
Block a user