updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / cvim / PKGBUILD
blobbc7f68c61dd490d1e8dbcb6b04bc7ccd7d5a1622
1 # Contributor: Osily <ly50247{at}gmail{dot}com>
3 pkgname=cvim
4 _realname=vim
5 _srcver=7.3
6 pkgver=${_srcver}
7 pkgrel=1
8 pkgdesc="Vim compiled without gui, without deps on vi/vim, ruby and desktop utils, supports x clipboard."
9 arch=(i686 x86_64)
10 license=('custom:vim')
11 url="http://www.vim.org"
12 depends=('libxt' 'gtk2')
13 makedepends=('wget' 'sed' 'grep' 'python2' 'perl' 'gzip')
14 provides=(${_realname})
15 conflicts=(gvim vim)
16 source=(ftp://ftp.vim.org/pub/vim/unix/vim-${_srcver}.tar.bz2)
17 md5sums=('5b9510a17074e2b37d8bb38ae09edbf2')
19 build() {
20 cd ${srcdir}/vim$(echo ${_srcver} | sed "s/\.//")
21 wget ftp://ftp.vim.org/pub/vim/patches/7.3/7.3.*
22 for x in `ls 7.3.*`; do patch -p0 -i $x; done
24 #python2
25 sed -i -e 's|vi_cv_path_python, python|vi_cv_path_python, python2|' \
26             ${srcdir}/vim73/src/configure.in
27 (cd ${srcdir}/vim73/src && autoconf)
29 ./configure --prefix=/usr --localstatedir=/var/lib/vim --mandir=/usr/share/man \
30     --with-features=big  --disable-gui \
31     --with-x=auto --disable-gpm \
32     --with-global-runtime=/usr/share/vim \
33     --enable-multibyte --enable-cscope \
34     --enable-perlinterp --enable-pythoninterp
35 make || return 1
37 make  VIMRCLOC=/etc DESTDIR=${pkgdir} install
39 cd ${pkgdir}/usr/bin
40 rm -f ex view rview xxd vimtutor
41 find ${pkgdir}/usr/share/man -type d -name 'man1' 2>/dev/null | \
42     while read _mandir; do
43     cd ${_mandir}
44     rm -f ex.1 view.1 vimtutor.1 xxd.1
45 done
47 # fix FS#17216
48 sed -i 's|messages,/var|messages,/var/log/messages.log,/var|' \
49     ${pkgdir}/usr/share/vim/vim$(echo ${_srcver} | sed "s/\.//")/filetype.vim
51 sed -i "s/rpmsave/pacsave/;s/rpmnew/pacnew/;s/,\*\.ebuild/\0,PKGBUILD*,*.install/" \
52     ${pkgdir}/usr/share/vim/vim$(echo ${_srcver} | sed "s/\.//")/filetype.vim
53 sed -i "/find the end/,+3{s/changelog_date_entry_search/changelog_date_end_entry_search/}" \
54     ${pkgdir}/usr/share/vim/vim$(echo ${_srcver} | sed "s/\.//")/ftplugin/changelog.vim
56   
57 install -Dm644 ${srcdir}/vim$(echo ${_srcver} | sed "s/\.//")/runtime/doc/uganda.txt\
58     ${pkgdir}/usr/share/licenses/${_realname}/license.txt