blob: e65d868fb27171f0a6b5a019d942f5c544c94fa8 (
plain)
1 # Description: Highly configurable text editor
2 # URL: https://www.vim.org/
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Depends on: ncurses acl
5
6 name=vim
7 version=9.0.0814
8 release=1
9 source=(https://github.com/vim/vim/archive/v${version}/$name-$version.tar.gz)
10
11 build() {
12 cd $name-$version/src
13
14 sed -i '/^CFLAGS/d' Makefile
15
16 ./configure \
17 --prefix=/usr \
18 --with-vim-name=vim \
19 --without-x \
20 --disable-gui \
21 --enable-multibyte \
22 --enable-cscope \
23 --disable-gpm \
24 --disable-canberra \
25 --disable-nls
26
27 make VIMRTDIR=
28 make -j1 VIMRTDIR= DESTDIR=$PKG install
29
30 mv $PKG/usr/share/vim/vimrc_example.vim $PKG/usr/share/vim/vimrc
31 rm -r $PKG/usr/{share/man/man?/vimtutor*,share/vim/{tutor,macros},bin/vimtutor}
32 rm $PKG/usr/share/vim/*/README.txt
33 rm -rf $PKG/usr/share/{applications,icons}
34 ln -sf vim $PKG/usr/bin/evim
35 ln -sf /bin/vi $PKG/usr/bin/vi
36 ln -sf vim.1.gz $PKG/usr/share/man/man1/ex.1.gz
37 ln -sf vim.1.gz $PKG/usr/share/man/man1/vi.1.gz
38 ln -sf vim.1.gz $PKG/usr/share/man/man1/rvim.1.gz
39 ln -sf vim.1.gz $PKG/usr/share/man/man1/view.1.gz
40 ln -sf vim.1.gz $PKG/usr/share/man/man1/rview.1.gz
41 ln -sf vim.1.gz $PKG/usr/share/man/man1/gvim.1.gz
42
43 ./configure \
44 --prefix=/ \
45 --datarootdir=/usr/share \
46 --with-vim-name=vi \
47 --without-x \
48 --disable-gui \
49 --enable-multibyte \
50 --disable-gpm \
51 --disable-nls \
52 --with-features=tiny
53
54 make VIMRTDIR=
55 make -j1 VIMRTDIR= DESTDIR=$PKG installvimbin
56 }
|