summaryrefslogtreecommitdiff
path: root/repo/extra/vim.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2021-10-06 23:29:58 +0100
committerdavidovski <david@davidovski.xyz>2021-10-06 23:29:58 +0100
commit7ff38024bec68fe70fb6eec0f5cd16188507558f (patch)
treed9f366b28b7d31ddbe3057669474f58962541a68 /repo/extra/vim.xibuild
parent76a1447eb1599f23165806b4ead10c5294039d05 (diff)
added all lfs packages
Diffstat (limited to 'repo/extra/vim.xibuild')
-rw-r--r--repo/extra/vim.xibuild34
1 files changed, 34 insertions, 0 deletions
diff --git a/repo/extra/vim.xibuild b/repo/extra/vim.xibuild
new file mode 100644
index 0000000..0723d2a
--- /dev/null
+++ b/repo/extra/vim.xibuild
@@ -0,0 +1,34 @@
+#!/bin/bash
+
+DEPS=(gpm acl glibc libgcrypt pcre zlib)
+
+SOURCE=https://github.com/vim/vim.git
+DESC="Vi Improved"
+
+build () {
+ echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h
+ ./configure --prefix=/usr
+ make
+ make DESTDIR=$PKG_DEST install
+}
+
+
+package () {
+ cat > 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
+ curl -sL https://davidovski.xyz/r/vim/vimrc >> vimrc
+ mkdir -pv $PKG_DEST/etc
+ cp -v vimrc $PKG_DEST/etc/vimrc
+}