1 # Contributor: osily <ly50247@gmail.com>
2 # Maintainer: tobias [ tobias at archlinux org ]
3 # Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>
6 pkgdesc='Vi Improved, a highly configurable, improved version of the vi text editor. With X and pyton2 support.'
10 license=('custom:vim')
11 url="http://www.vim.org"
12 depends=("vim-runtime" 'gpm')
13 makedepends=('gpm' 'libxt')
14 conflicts=('gvim' 'vim')
16 source=(ftp://ftp.archlinux.org/other/vim/vim-${pkgver}.tar.xz)
18 md5sums=('75fe4772a97917f5eb4c919882fc44bd')
23 mv vim-${pkgver} vim-build
25 # define the place for the global (g)vimrc file (set to /etc/vimrc)
26 sed -i 's|^.*\(#define SYS_.*VIMRC_FILE.*"\) .*$|\1|' \
27 vim-build/src/feature.h
28 sed -i 's|^.*\(#define VIMRC_FILE.*"\) .*$|\1|' \
29 vim-build/src/feature.h
32 sed -i -e 's|vi_cv_path_python, python|vi_cv_path_python, python2|' \
33 vim-build/src/configure.in
34 (cd vim-build/src && autoconf)
36 cd "${srcdir}"/vim-build
38 ./configure --prefix=/usr --localstatedir=/var/lib/vim \
39 --with-features=big --with-compiledby=ArchLinux \
40 --enable-gpm --enable-acl --with-x=yes \
41 --disable-gui --enable-multibyte --enable-cscope \
42 --disable-netbeans --enable-perlinterp --enable-pythoninterp \
43 --disable-python3interp --disable-rubyinterp --disable-luainterp
49 cd "${srcdir}"/vim-build
50 make VIMRCLOC=/etc DESTDIR="${pkgdir}" install
52 # Runtime provided by runtime package
53 rm -r "${pkgdir}"/usr/share/vim
56 install -Dm644 "${srcdir}"/vim-build/runtime/doc/uganda.txt \
57 "${pkgdir}"/usr/share/licenses/vim/license.txt
60 # vim:set sw=2 sts=2 et: