Big script
This commit is contained in:
46
toolchain/scripts/169-vim.sh
Executable file
46
toolchain/scripts/169-vim.sh
Executable 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 ==="
|
||||
Reference in New Issue
Block a user