# $Id$ # Maintainer: tobias [ tobias at archlinux org ] pkgname=vim _srcver=7.2 _patchlevel=108 pkgver=${_srcver}.${_patchlevel} pkgrel=1.1 pkgdesc="a highly configurable, improved version of the vi text editor" arch=(i686 x86_64) license=('custom:vim') url="http://www.vim.org" depends=("vi>=${pkgver}" 'perl' 'acl' 'gpm>=1.20.4' 'libxt' 'python') makedepends=('wget' 'sed' 'grep') backup=(etc/vimrc) install=${pkgname}.install # we need the extra-stuff to get all patches applied smoothly source=(ftp://ftp.vim.org/pub/vim/unix/vim-${_srcver}.tar.bz2 \ ftp://ftp.vim.org/pub/vim/extra/vim-${_srcver}-extra.tar.gz \ ftp://ftp.vim.org/pub/vim/extra/vim-${_srcver}-lang.tar.gz \ fetch_patches.sh) build() { # pull in patches from vim.org (or the src cache alternatively) . ${startdir}/src/fetch_patches.sh get_patches || return 1 cd ${startdir}/src/vim$(echo ${_srcver} | sed "s/\.//") sed -i 's|^.*\(#define SYS_.*VIMRC_FILE.*"\) .*$|\1|' src/feature.h # build party ./configure --prefix=/usr --localstatedir=/var/lib/vim --mandir=/usr/share/man \ --with-compiledby=ArchLinux --with-features=big \ --with-x=yes --disable-gui \ --with-global-runtime=/usr/share/vim --with-vim-name=vim \ --enable-multibyte --enable-cscope \ --enable-perlinterp --enable-pythoninterp make || return 1 make VIMRCLOC=/etc DESTDIR=${startdir}/pkg VIMRTDIR= install cd ${startdir}/pkg/usr/bin rm -f ex view rview xxd vimtutor ln -s vitutor vimtutor # delete the manpages/symlinks provided by vi package find ${startdir}/pkg/usr/share/man -type d -name 'man1' 2> /dev/null | \ while read mandir; do cd ${mandir} mv vimdiff.1 vimdiff.org rm -f *.1 ln -s rvi.1.gz rvim.1.gz ln -s vi.1.gz vim.1.gz ln -s vitutor.1.gz vimtutor.1.gz mv vimdiff.org vimdiff.1 done # kill the nobackup parts sed -i '/vms/,+4 d' ${startdir}/pkg/usr/share/vim/vimrc_example.vim install -Dm644 ${startdir}/pkg/usr/share/vim/vimrc_example.vim \ ${startdir}/pkg/etc/vimrc # clean all settings and controls - served by vi package rm -rf ${startdir}/pkg/usr/share/vim } md5sums=('f0901284b338e448bfd79ccca0041254' '35e04482f07c57221c9a751aaa3b8dac' 'd8884786979e0e520c112faf2e176f05' 'f16f81339ea02b6e1a736264861b7fad') sha256sums=('914db0f2205ebd6f02878295ec2506036ea7500399db112c61a01491cd9a1d86' '20894ac79672160bfc4f1d2f9f9775b34d944762d655307a91ca96d358faa04d' '11607f539a4518b550bf1606b7d3a6f36c1ffdf566c058e7d94bced78034cd5b' 'ca1318de5f37712afa532e87e0a201ad4dadcfe6d3b1382d571ea4c621bd07ed')