summaryrefslogtreecommitdiff
path: root/repo/vim/vim.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-31 11:05:19 +0100
committerdavidovski <david@davidovski.xyz>2022-05-31 11:05:19 +0100
commit48ca75555522716f0f686dcae3dd6cf3d8ad714d (patch)
tree00c0f58550ba4661e87376f2f02c8001c69bae44 /repo/vim/vim.xibuild
parent871b2b573f01c1b3176a0f65458b3d281b41c437 (diff)
removed idea of repos
Diffstat (limited to 'repo/vim/vim.xibuild')
-rw-r--r--repo/vim/vim.xibuild38
1 files changed, 38 insertions, 0 deletions
diff --git a/repo/vim/vim.xibuild b/repo/vim/vim.xibuild
new file mode 100644
index 0000000..8f7adf4
--- /dev/null
+++ b/repo/vim/vim.xibuild
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+MAKEDEPS="make "
+DEPS="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
+
+}