From 739c65c54cb0e957df5e9b76f93fb02554e5cac3 Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 4 May 2022 23:52:30 +0100 Subject: moved everything to new file formatting --- repo/apps/vim/vim.xibuild | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 repo/apps/vim/vim.xibuild (limited to 'repo/apps/vim') diff --git a/repo/apps/vim/vim.xibuild b/repo/apps/vim/vim.xibuild new file mode 100644 index 0000000..d396eb2 --- /dev/null +++ b/repo/apps/vim/vim.xibuild @@ -0,0 +1,38 @@ +#!/bin/sh + +MAKEDEPS="make " +DEPS="gpm acl musl libgcrypt pcre2 zlib" + +PKG_VER=8.2.4656 +SOURCE=https://github.com/vim/vim/archive/refs/tags/v$PKG_VER.tar.gz +DESC="Vi Improved" + +prepare () { + echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h +} + +build () { + ./configure --prefix=/usr --disable-gtk-check --disable-motif-check --disable-athena-check --disable-gui --disable-xsmp --without-x -disable-canberra --disable-libsodium --disable-gpm --disable-libsodium + make +} + + +package () { + make -j1 DESTDIR=$PKG_DEST install + mkdir -p $PKG_DEST/etc + cat > $PKG_DEST/etc/vimrc << "EOF" +" Begin /etc/vimrc +" Ensure defaults are set before customizing settings, not after +source $VIMRUNTIME/defaults.vim +let skip_defaults_vim=1 +set nocompatible +set backspace=2 +set mouse= +syntax on +if (&term == "xterm") || (&term == "putty") + set background=dark +endif +" End /etc/vimrc +EOF + +} -- cgit v1.2.1