Big script

This commit is contained in:
2026-03-20 15:09:30 +01:00
parent dc2ac2f768
commit a2ca02a856
92 changed files with 5842 additions and 0 deletions

46
toolchain/scripts/169-vim.sh Executable file
View File

@@ -0,0 +1,46 @@
#!/bin/bash
# ============================================================================
# DarkForge Linux — Phase 3, Chapter 8: vim
# ============================================================================
# Purpose: Build vim (Vi Improved — text editor).
# Provides vi and vim commands for system administration and editing.
# Inputs: /sources/vim-9.1.1166.tar.gz
# Outputs: vim, ex, view binaries in /usr/bin/, libraries in /usr/lib/
# Assumes: Running inside chroot, without X11
# Ref: LFS 13.0 §8.75
# ============================================================================
set -euo pipefail
source /sources/toolchain-scripts/100-chroot-env.sh
PACKAGE="vim"
VERSION="9.1.1166"
echo "=== Building ${PACKAGE}-${VERSION} ==="
cd /sources
tar -xf "${PACKAGE}-${VERSION}.tar.gz"
cd "${PACKAGE}-${VERSION}"
# Configure for a minimal build without X11 (console-only)
./configure \
--prefix=/usr \
--with-features=huge \
--enable-gui=no \
--enable-cscope=yes \
--with-python3-command=/usr/bin/python3
make
# Optional: run tests
# make check || true
make install
# Create symlinks for vi (some scripts expect it)
ln -sfv vim /usr/bin/vi
ln -sfv vim /usr/bin/ex
ln -sfv vim /usr/bin/view
cd /sources
rm -rf "${PACKAGE}-${VERSION}"
echo "=== ${PACKAGE}-${VERSION} complete ==="