1 # Maintainer Jekyll Wu<adaptee [at] gmail [dot] com>
2 # Basically, stolen shamelessly from http://chakra-probject.org/ccr
7 pkgdesc="A Qt powered vim GUI"
9 url="https://bitbucket.org/equalsraf/vim-qt/wiki/Home"
10 license=('custom:vim')
11 depends=('qt' 'vim-runtime' 'gpm' 'perl' 'python>=2.7.1' 'ruby' 'libxt'
12 'desktop-file-utils' )
13 makedepends=('gpm' 'perl' 'python2>=2.7.1' 'ruby' 'libxt' 'desktop-file-utils' 'qt'
14 'gettext' 'pkgconfig' 'rsync' 'sed' 'git')
18 install="${pkgname}.install"
20 _gitroot="https://bitbucket.org/equalsraf/vim-qt.git"
23 _builddir=vim-qt-build
28 msg "Connecting to GIT server...."
30 if [ -d ${_gitname}/.git ] ; then
33 # Change remote url to anongit
34 if [ -z $( git branch -v | grep anongit ) ] ; then
35 git remote set-url origin ${_gitroot}
39 msg "The local files are updated."
41 git clone ${_gitroot} ${_gitname}
44 msg "GIT checkout done or server timeout"
45 msg "Starting make..."
49 rsync -a --exclude='.git/' ${_gitname}/ vim-qt-build
53 # define the place for the global (g)vimrc file (set to /etc/vimrc)
54 sed -i 's|^.*\(#define SYS_.*VIMRC_FILE.*"\) .*$|\1|' \
55 vim-qt-build/src/feature.h
56 sed -i 's|^.*\(#define VIMRC_FILE.*"\) .*$|\1|' \
57 vim-qt-build/src/feature.h
59 sed -i -e 's|vi_cv_path_python, python|vi_cv_path_python, python2|' \
60 vim-qt-build/src/configure.in
61 (cd vim-qt-build/src && autoconf)
65 cd ${srcdir}/${_builddir}
67 export CFLAGS="-g -O0"
68 export CXXFLAGS="-g -O0"
72 --localstatedir=/var/lib/vim \
73 --mandir=/usr/share/man \
74 --with-compiledby=Archlinux \
85 --enable-pythoninterp \
92 cd ${srcdir}/${_builddir}
94 # Yes, I know gvim stands for `graphical vim`, not `gtk vim`
95 # Whatever, jut name it as qvim.
96 install -D src/vim ${pkgdir}/usr/bin/qvim
99 install -Dm644 ${srcdir}/qvim.desktop \
100 ${pkgdir}/usr/share/applications/qvim.desktop
103 install -Dm644 "${srcdir}/qvim.svg" \
104 "${pkgdir}/usr/share/icons/hicolor/scalable/apps/qvim.svg"
109 md5sums=('48d76291214e5ef81bc0812d6346f391'
110 '58c3f5ca063bd624b9feb5942e4f2adf')