CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Fixed major update for Arch-Maintainer's email (all ports)
[crossrootfs.git] / vim / Pkgfile
... / ...
CommitLineData
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
5# Depends on: ncurses
6
7name=vim
8version=7.2.350
9release=1
10source=(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)
17
18build () {
19 cd vim72/src
20
21 gunzip -c $SRC/${version%.*}.*.gz | patch -p0 -d $SRC/vim72
22 unxz -c $SRC/vim-${version%.*}.*.xz | patch -p0 -d $SRC/vim72
23
24 cat > auto/config.cache << EOF
25vim_cv_getcwd_broken=no
26vim_cv_memmove_handles_overlap=yes
27vim_cv_stat_ignores_slash=no
28vim_cv_terminfo=yes
29vim_cv_tgent=zero
30vim_cv_toupper_broken=no
31vim_cv_tty_group=world
32ac_cv_sizeof_int=4
33EOF
34
35 ./configure --build=$CHOST \
36 --host=$CTARGET \
37 --prefix=/usr \
38 --mandir=/usr/man \
39 --with-vim-name=vim \
40 --with-features=normal \
41 --with-x=no \
42 --with-tlib=ncurses \
43 --enable-gui=no \
44 --enable-multibyte \
45 --disable-gtktest \
46 --disable-xim \
47 --disable-netbeans \
48 --disable-gpm \
49 --disable-nls
50
51 make VIMRTDIR= DESTDIR=$PKG install
52
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
64}