#!/bin/sh # Build script for vim # Vi IMproved text editor set -e echo "Building vim..." cd vim-9.1.0000 # On illumos, use GNU make MAKE=gmake if [ "$(uname -s)" != "SunOS" ]; then MAKE=make fi # Configure with minimal features for testing # (Full vim would have more options) ./configure \ --prefix=/usr \ --with-features=normal \ --enable-multibyte \ --disable-gui \ --without-x \ --disable-netbeans \ --enable-cscope # Build $MAKE ${MAKEFLAGS} # Install to DESTDIR echo "Installing to ${DESTDIR}..." $MAKE DESTDIR="${DESTDIR}" install # Create vi symlink cd "${DESTDIR}/usr/bin" ln -sf vim vi 2>/dev/null || true echo "Build complete!" # Vim - Vi IMproved # The classic text editor [package] name = "vim" version = "9.1.0" release = 1 description = "Vi IMproved - enhanced vi text editor" url = "https://www.vim.org/" license = "Vim" maintainer = "Chris Tusa " arch = "x86_64" # vim provides the editor and vi alternatives alternatives = ["editor", "vi"] [dependencies] # Depends on ncurses for terminal handling runtime = ["ncurses"] build = ["ncurses"] [[source]] file = "vim-9.1.0.tar.gz" urls = [ "https://github.com/vim/vim/archive/refs/tags/v9.1.0000.tar.gz", "https://ftp.nluug.nl/pub/vim/unix/vim-9.1.tar.bz2" ] checksum = "SKIP" [build] parallel = true jobs = 0