talimat 968 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Description: The Vim package contains a powerful text editor.
  2. # URL: http://www.vim.org/
  3. # Packager: pierre^
  4. # Depends on:
  5. name=vim
  6. version=7.4
  7. release=1
  8. source=(ftp://ftp.vim.org/pub/vim/unix/vim-$version.tar.bz2
  9. http://downloads.nutyx.org/files/patchs/vim/vim-7.4-locale-1.patch)
  10. build()
  11. {
  12. vimv="vim${version/./}"
  13. cd $vimv
  14. patch -Np1 -i $SRC/vim-7.4-locale-1.patch
  15. echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h
  16. ./configure --prefix=/usr --enable-multibyte \
  17. --enable-gui=no --with-x=no \
  18. --disable-gpm
  19. make
  20. mkdir -p $PKG/usr/share/locale
  21. make DESTDIR=$PKG DEST_HELP=$PKG/usr/share/doc/vim-$version \
  22. LANGSUBLOC=/usr/share/locale install
  23. ln -sv vim $PKG/usr/bin/vi
  24. for L in $PKG/usr/share/man/{,*/}man1/vim.1; do
  25. ln -sv vim.1 $(dirname $L)/vi.1
  26. done
  27. mkdir $PKG/etc
  28. cat > $PKG/etc/vimrc << "EOF"
  29. " Begin /etc/vimrc
  30. set background=dark
  31. set ruler
  32. set nocompatible
  33. set backspace=2
  34. syntax on
  35. " End /etc/vimrc
  36. EOF
  37. }