#Maintainer: George Vlahavas (vlahavas~at~gmail~dot~com, gapan@zenwalk forums) pkgname=gvim pkgver=7.2.173 zenver=62 pkgrel=1 arch=i686 source=("http://pnboy.pinguix.com/gapan/vim/vim-$pkgver.tar.bz2" "http://pnboy.pinguix.com/gapan/$pkgname/icons.tar.gz" "http://pnboy.pinguix.com/gapan/$pkgname/gvim.desktop" "http://pnboy.pinguix.com/gapan/$pkgname/ICONS") sourcetemplate=http://pnboy.pinguix.com/gapan/$pkgname docs=("readme*" "icons") url=http://www.vim.org/ options=('norequiredbuilder' 'keepdepfile') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "gvim - enhanced vi editor with a gtk2 interface" "gvim is an almost compatible version of the UNIX editor Vi using a" "gtk2 interface. Many new features have been added: multi level undo," "syntax highlighting, command line history, on-line help, filename" "completion, block operations, folding, Unicode support, etc." ) build() { cd $startdir/src/vim-$pkgver ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --enable-pythoninterp --enable-perlinterp --disable-tclinterp --enable-multibyte --enable-cscope --with-features=huge --enable-gui=gtk2 make || return 1 make install DESTDIR=$startdir/pkg # Remove all files that conflict with the vim package. gvim is not a symlink anymore. ;) cd $startdir/pkg/usr/bin rm ex gvim rview rvim view vimdiff vimtutor xxd mv vim gvim ln -sf gvim eview ln -sf gvim evim ln -sf gvim gview ln -sf gvim gvimdiff ln -sf gvim rgview ln -sf gvim rgvim cd $startdir/pkg rm -rf usr/share # Copy icons to the right place ICONSIZES="128 72 64 48 32 24 16" for i in $ICONSIZES; do mkdir -p $startdir/pkg/usr/share/icons/hicolor/$i\x$i/apps; mv $startdir/src/$pkgname-$i.png $startdir/pkg/usr/share/icons/hicolor/$i\x$i/apps/$pkgname.png; done; # Put .desktop file in the right directory mkdir -p $startdir/pkg/usr/share/applications cp $startdir/src/gvim.desktop $startdir/pkg/usr/share/applications chown -R root:root $startdir/pkg/usr/share/applications }