# Description: GTK version of the vim editor
# URL:         http://www.vim.org/
# Maintainer:  Juergen Daubert, juergen dot daubert at t-online dot de
# Depends on:  vim, gtk

name=gvim
version=7.3
release=1
source=(ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2
        gvim.desktop)

build () {
    cd vim73/src

    ./configure --prefix=/usr \
                --with-vim-name=gvim \
                --with-x=yes \
                --enable-gui=gtk2 \
                --enable-multibyte \
                --disable-gpm \
                --disable-nls

    make VIMRTDIR=
    make VIMRTDIR= DESTDIR=$PKG installvimbin

    install -d $PKG/usr/share/{applications,pixmaps}
    install -m 644 $SRC/gvim.desktop $PKG/usr/share/applications
    install -m 644 ../runtime/vim*.png $PKG/usr/share/pixmaps
}
