updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / vim-x-py / PKGBUILD
blobf3484ab8e32cff3e8279ea2e01dd77e9a9979478
1 # Contributor: osily <ly50247@gmail.com>
2 # Maintainer: tobias [ tobias at archlinux org ]
3 # Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>
5 pkgname=vim-x-py
6 pkgdesc='Vi Improved, a highly configurable, improved version of the vi text editor. With X and pyton2 support.'
7 pkgver=7.3.401
8 pkgrel=2
9 arch=('i686' 'x86_64')
10 license=('custom:vim')
11 url="http://www.vim.org"
12 depends=("vim-runtime" 'gpm')
13 makedepends=('gpm' 'libxt')
14 conflicts=('gvim' 'vim')
15 provides=('vim=7.3')
16 source=(ftp://ftp.archlinux.org/other/vim/vim-${pkgver}.tar.xz)
18 md5sums=('75fe4772a97917f5eb4c919882fc44bd')
20 build() {
21   cd "${srcdir}"
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
31   # fix python name
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
45   make
48 package() {
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
55   # license
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: