summaryrefslogtreecommitdiffstats
path: root/vim/Pkgfile
blob: f86b618a83d4d6984414bf8074f8028a07c895d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Description: Le plus populaire des éditeurs de texte colorimétrique
# URL: http://www.vim.org/
# Maintainer:  NuTyX core team
# Packager: thierryn1 at hispeed dot ch

name=vim
version=7.3
release=2
source=(ftp://ftp.vim.org/pub/vim/unix/vim-$version.tar.bz2\
	vimrc)
build () {
cd $name${version/\./}
echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h
./configure --prefix=/usr \
	--enable-gui=no --with-x=no \
        --enable-multibyte  --disable-gpm

make 
make DESTDIR=$PKG install
mkdir -v $PKG/{etc,usr/share/doc}
cat > $PKG/etc/vimrc << "EOF"
" Begin /etc/vimrc

set nocompatible
set backspace=2
set background=dark
syntax on
set ruler
" End /etc/vimrc
EOF

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
ln -sv ../vim/vim72/doc $PKG/usr/share/doc/vim-$version
}