summaryrefslogtreecommitdiff
path: root/repo/apps
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-03-03 00:13:55 +0000
committerdavidovski <david@davidovski.xyz>2022-03-03 00:13:55 +0000
commit2fea415a8b6ab9eae92686a182341d8f5fe56d00 (patch)
tree889fee82b0ebde2870be7673fc7eff9c2bc2efeb /repo/apps
parent92a76bb80efda3fcb96cb0a990ae5bfa658449d1 (diff)
fixed docbook issues
Diffstat (limited to 'repo/apps')
-rw-r--r--repo/apps/vim.xibuild39
1 files changed, 39 insertions, 0 deletions
diff --git a/repo/apps/vim.xibuild b/repo/apps/vim.xibuild
new file mode 100644
index 0000000..7720081
--- /dev/null
+++ b/repo/apps/vim.xibuild
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+MAKEDEPS="make "
+DEPS="gpm acl musl libgcrypt pcre2 zlib"
+
+PKG_VER=8.2.4257
+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 DESTDIR=$PKG_DEST install
+
+ mkdir -pv $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
+
+}