Big script
This commit is contained in:
33
toolchain/scripts/153-ninja.sh
Executable file
33
toolchain/scripts/153-ninja.sh
Executable file
@@ -0,0 +1,33 @@
|
||||
#!/bin/bash
|
||||
# ============================================================================
|
||||
# DarkForge Linux — Phase 3, Chapter 8.58: Ninja
|
||||
# ============================================================================
|
||||
# Purpose: Build Ninja, a small build system focused on speed.
|
||||
# Required by Meson and used by many modern projects.
|
||||
# Inputs: /sources/ninja-1.12.1.tar.gz
|
||||
# Outputs: ninja binary in /usr/bin/
|
||||
# Assumes: Running inside chroot, Python already built
|
||||
# Ref: LFS 13.0 §8.58
|
||||
# ============================================================================
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
source /sources/toolchain-scripts/100-chroot-env.sh
|
||||
|
||||
PACKAGE="ninja"
|
||||
VERSION="1.12.1"
|
||||
|
||||
echo "=== Building ${PACKAGE}-${VERSION} (Phase 3) ==="
|
||||
|
||||
pkg_extract "${PACKAGE}-${VERSION}.tar.gz"
|
||||
cd "${PACKAGE}-${VERSION}"
|
||||
|
||||
python3 configure.py \
|
||||
--bootstrap \
|
||||
--prefix=/usr
|
||||
|
||||
./ninja
|
||||
./ninja install
|
||||
|
||||
pkg_cleanup "${PACKAGE}-${VERSION}"
|
||||
echo "=== ${PACKAGE}-${VERSION} complete ==="
|
||||
Reference in New Issue
Block a user