2018-07-26 10:08:32 +02:00
|
|
|
|
# Tanım: Vim paketi güçlü bir metin editörü içerir.
|
2018-06-09 00:06:58 +02:00
|
|
|
|
# URL: http://www.vim.org/
|
|
|
|
|
# Paketçi: milisarge
|
2018-07-26 10:08:32 +02:00
|
|
|
|
# Gerekler:
|
|
|
|
|
# Grup: geliştirme
|
2018-06-09 00:06:58 +02:00
|
|
|
|
|
|
|
|
|
isim=vim
|
|
|
|
|
surum=7.4
|
|
|
|
|
devir=1
|
|
|
|
|
|
|
|
|
|
kaynak=(ftp://ftp.vim.org/pub/vim/unix/vim-$surum.tar.bz2
|
|
|
|
|
vim-7.4-locale-1.patch)
|
|
|
|
|
derle()
|
|
|
|
|
{
|
|
|
|
|
vimv="vim${version/./}"
|
|
|
|
|
cd $vimv
|
|
|
|
|
patch -Np1 -i $SRC/vim-7.4-locale-1.patch
|
|
|
|
|
echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h
|
|
|
|
|
|
|
|
|
|
./configure --prefix=/usr --enable-multibyte \
|
|
|
|
|
--enable-gui=no --with-x=no \
|
|
|
|
|
--disable-gpm
|
|
|
|
|
|
|
|
|
|
make
|
|
|
|
|
mkdir -p $PKG/usr/share/locale
|
|
|
|
|
|
|
|
|
|
make DESTDIR=$PKG DEST_HELP=$PKG/usr/share/doc/vim-$surum \
|
|
|
|
|
LANGSUBLOC=/usr/share/locale install
|
|
|
|
|
|
|
|
|
|
ln -sv vim $PKG/usr/bin/vi
|
|
|
|
|
for L in $PKG/usr/share/man/{,*/}man1/vim.1; do
|
|
|
|
|
ln -sv vim.1 $(dirname $L)/vi.1
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
mkdir $PKG/etc
|
|
|
|
|
|
|
|
|
|
cat > $PKG/etc/vimrc << "EOF"
|
|
|
|
|
" Begin /etc/vimrc
|
|
|
|
|
set background=dark
|
|
|
|
|
set ruler
|
|
|
|
|
set nocompatible
|
|
|
|
|
set backspace=2
|
|
|
|
|
syntax on
|
|
|
|
|
|
|
|
|
|
" End /etc/vimrc
|
|
|
|
|
EOF
|
|
|
|
|
}
|