# Maintainer: MGislv # Contributor: mesmer # Contributor: xiretza # Contributor: TJM # Directly based off of the official package pkgname=vim-clipboard pkgver=9.1.0000 pkgrel=1 pkgdesc='Vi Improved, a highly configurable, improved version of the vi text editor' url='https://www.vim.org' arch=('x86_64' 'x86_64_v3') license=('custom:vim') depends=('vim-runtime' 'gpm' 'acl' 'glibc' 'libxt' 'libgcrypt' 'zlib') makedepends=('glibc' 'libgcrypt' 'gpm' 'python' 'ruby' 'libxt' 'lua' 'gawk' 'git' 'tcl' 'zlib' 'perl') optdepends=('python: Python language support' 'ruby: Ruby language support' 'lua: Lua language support' 'perl: Perl language support' 'tcl: Tcl language support') conflicts=('vim' 'gvim' 'vim-minimal') provides=('xxd' 'vim' 'vim-minimal' 'vim-plugin-runtime') replaces=('vim' 'vim-minimal' 'gvim') source=(git+https://github.com/vim/vim.git?signed#tag=v${pkgver} vimdoc.hook) sha512sums=('SKIP' 'a02ad0d66f300160911aeb81d8886c6c558436ac4ee3fcd161dd65c6b1e5d1f41b9005a7f5bb5ba68d57027fc1c8e43daabf055bd6207fb5a216a67f758df8d1') validpgpkeys=('4F19708816918E19AAE19DEEF3F92DA383FDDE09') # Christian Brabandt prepare() { cd vim/src # define the place for the global vimrc file (set to /etc/vimrc) sed -E 's|^.*(#define SYS_.*VIMRC_FILE.*").*$|\1|g' -i feature.h sed -E 's|^.*(#define VIMRC_FILE.*").*$|\1|g' -i feature.h autoconf } build() { cd vim ./configure \ --prefix=/usr \ --localstatedir=/var/lib/vim \ --with-features=huge \ --with-compiledby='Arch Linux' \ --enable-gpm \ --enable-acl \ --with-x=yes \ --disable-gui \ --enable-multibyte \ --enable-cscope \ --enable-netbeans \ --enable-perlinterp=dynamic \ --enable-python3interp=dynamic \ --enable-rubyinterp=dynamic \ --enable-luainterp=dynamic \ --enable-tclinterp=dynamic \ --disable-canberra make } package() { cd vim make -j1 VIMRCLOC=/etc DESTDIR="${pkgdir}" install # provided by (n)vi in core rm "${pkgdir}"/usr/bin/{ex,view} # delete some manpages find "${pkgdir}"/usr/share/man -type d -name 'man1' 2>/dev/null | \ while read _mandir; do cd "${_mandir}" rm -f ex.1 view.1 # provided by (n)vi rm -f evim.1 # this does not make sense if we have no GUI done # Runtime provided by runtime package rm -r "${pkgdir}"/usr/share/vim # remove gvim.desktop as not included rm "${pkgdir}"/usr/share/applications/gvim.desktop # license install -Dm 644 runtime/doc/uganda.txt \ "${pkgdir}"/usr/share/licenses/${pkgname}/license.txt # pacman hook for documentation helptags install -Dm 644 "${srcdir}"/vimdoc.hook "${pkgdir}"/usr/share/libalpm/hooks/vimdoc.hook } # vim: ts=2 sw=2 et: