talimat 931 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Tanım: Vim paketi güçlü bir metin editörü içerir.
  2. # URL: http://www.vim.org/
  3. # Paketçi: milisarge
  4. # Gerekler:
  5. # Grup: geliştirme
  6. isim=vim
  7. surum=7.4
  8. devir=1
  9. kaynak=(ftp://ftp.vim.org/pub/vim/unix/vim-$surum.tar.bz2
  10. vim-7.4-locale-1.patch)
  11. derle()
  12. {
  13. vimv="vim${version/./}"
  14. cd $vimv
  15. patch -Np1 -i $SRC/vim-7.4-locale-1.patch
  16. echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h
  17. ./configure --prefix=/usr --enable-multibyte \
  18. --enable-gui=no --with-x=no \
  19. --disable-gpm
  20. make
  21. mkdir -p $PKG/usr/share/locale
  22. make DESTDIR=$PKG DEST_HELP=$PKG/usr/share/doc/vim-$surum \
  23. LANGSUBLOC=/usr/share/locale install
  24. ln -sv vim $PKG/usr/bin/vi
  25. for L in $PKG/usr/share/man/{,*/}man1/vim.1; do
  26. ln -sv vim.1 $(dirname $L)/vi.1
  27. done
  28. mkdir $PKG/etc
  29. cat > $PKG/etc/vimrc << "EOF"
  30. " Begin /etc/vimrc
  31. set background=dark
  32. set ruler
  33. set nocompatible
  34. set backspace=2
  35. syntax on
  36. " End /etc/vimrc
  37. EOF
  38. }