1 # Contributor: Eugeni Dodonov <eugeni@dodonov.net>
2 # Based on VIM and GVIM PKGBUILD files.
6 pkgdesc="Adds support for VimShell patch for VIM and GVIM."
9 url="http://vimshell.wana.at"
10 depends=('perl' 'python' 'ruby' 'acl' 'gpm>=1.20.4' 'libxt' 'gtk2' 'desktop-file-utils')
11 makedepends=('wget' 'sed' 'grep')
13 conflicts=('vim' 'gvim')
14 provides=('vim' 'gvim')
15 install=${pkgname}.install
16 # we need the extra-stuff to get all patches applied smoothly
17 source=(ftp://ftp.vim.org/pub/vim/unix/vim-${pkgver}.tar.bz2 \
18 ftp://ftp.vim.org/pub/vim/extra/vim-${pkgver}-extra.tar.gz \
19 ftp://ftp.vim.org/pub/vim/extra/vim-${pkgver}-lang.tar.gz \
21 md5sums=('f0901284b338e448bfd79ccca0041254'
22 '35e04482f07c57221c9a751aaa3b8dac'
23 'd8884786979e0e520c112faf2e176f05'
24 '257bcfae8c5883d968164bf976fdb97b')
28 # pull in patches from vim.org (or the src cache alternatively)
29 patch -p0 < ${startdir}/src/vimshell.patch || exit 1
30 cd ${startdir}/src/vim$(echo ${pkgver} | sed "s/\.//")
31 sed -i 's|^.*\(#define SYS_.*VIMRC_FILE.*"\) .*$|\1|' src/feature.h
33 ./configure --prefix=/usr --localstatedir=/var/lib/vim --mandir=/usr/share/man \
34 --with-compiledby=ArchLinux --with-features=big \
35 --with-x=yes --enable-gui=gtk2 \
36 --with-global-runtime=/usr/share/vim --with-vim-name=vim \
37 --enable-multibyte --enable-cscope \
38 --enable-perlinterp --enable-pythoninterp --enable-rubyinterp
40 make first || return 1
42 make VIMRCLOC=/etc DESTDIR=${startdir}/pkg VIMRTDIR= install
43 cd ${startdir}/pkg/usr/bin
44 rm -f ex view rview xxd vimtutor
45 ln -s vitutor vimtutor
47 # delete the manpages/symlinks provided by vi package
48 find ${startdir}/pkg/usr/share/man -type d -name 'man1' 2> /dev/null | \
52 ln -s rvi.1.gz rvim.1.gz
53 ln -s vi.1.gz vim.1.gz
54 ln -s vidiff.1.gz vimdiff.1.gz
55 ln -s vitutor.1.gz vimtutor.1.gz
58 # kill the nobackup parts
59 sed -i '/vms/,+4 d' ${startdir}/pkg/usr/share/vim/vimrc_example.vim
60 install -Dm644 ${startdir}/pkg/usr/share/vim/vimrc_example.vim \
61 ${startdir}/pkg/etc/vimrc
62 # clean all settings and controls - served by vi package
63 rm -rf ${startdir}/pkg/usr/share/vim