1 # Description: Highly configurable text editor
2 # URL: http://www.vim.org/
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
10 source=(ftp://ftp.vim.org/pub/vim/unix/vim-${version%.*}.tar.bz2 \
11 ftp://ftp.vim.org/pub/vim/extra/vim-${version%.*}-extra.tar.gz \
12 ftp://ftp.vim.org/pub/vim/extra/vim-${version%.*}-lang.tar.gz \
13 ftp://ftp.vim.org/pub/vim/patches/${version%.*}/7.2.001-100.gz \
14 ftp://ftp.vim.org/pub/vim/patches/${version%.*}/7.2.101-200.gz \
15 ftp://ftp.vim.org/pub/vim/patches/${version%.*}/7.2.201-300.gz \
16 http://crux.nu/files/distfiles/vim-7.2.301-350.xz)
21 gunzip -c $SRC/${version%.*}.*.gz | patch -p0 -d $SRC/vim72
22 unxz -c $SRC/vim-${version%.*}.*.xz | patch -p0 -d $SRC/vim72
24 cat > auto/config.cache << EOF
25 vim_cv_getcwd_broken=no
26 vim_cv_memmove_handles_overlap=yes
27 vim_cv_stat_ignores_slash=no
30 vim_cv_toupper_broken=no
31 vim_cv_tty_group=world
35 ./configure --build=$CHOST \
40 --with-features=normal \
51 make VIMRTDIR= DESTDIR=$PKG install
53 mv $PKG/usr/share/vim/vimrc_example.vim $PKG/usr/share/vim/vimrc
54 rm -rf $PKG/usr/man/man?/vimtutor* $PKG/usr/share/vim/tutor $PKG/usr/share/vim/macros
55 rm $PKG/usr/share/vim/*/README.txt
56 ln -sf vim $PKG/usr/bin/evim
57 ln -sf vim $PKG/usr/bin/vi
58 ln -sf vim.1.gz $PKG/usr/man/man1/ex.1.gz
59 ln -sf vim.1.gz $PKG/usr/man/man1/vi.1.gz
60 ln -sf vim.1.gz $PKG/usr/man/man1/rvim.1.gz
61 ln -sf vim.1.gz $PKG/usr/man/man1/view.1.gz
62 ln -sf vim.1.gz $PKG/usr/man/man1/rview.1.gz
63 ln -sf vim.1.gz $PKG/usr/man/man1/gvim.1.gz