2008-08-13 11:39:13 +02:00
|
|
|
# Description: Highly configurable text editor
|
2021-09-12 11:01:59 +02:00
|
|
|
# URL: https://www.vim.org/
|
2021-04-13 10:48:17 +02:00
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
|
|
# Depends on: ncurses acl
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
name=vim
|
2021-09-12 11:01:59 +02:00
|
|
|
version=8.2.3429
|
|
|
|
release=1
|
2017-09-08 11:11:45 +02:00
|
|
|
source=(https://github.com/vim/vim/archive/v${version}/$name-$version.tar.gz)
|
2006-02-23 16:26:10 +01:00
|
|
|
|
2021-04-13 10:48:17 +02:00
|
|
|
build() {
|
|
|
|
cd $name-$version/src
|
|
|
|
|
|
|
|
sed -i '/^CFLAGS/d' Makefile
|
|
|
|
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--with-vim-name=vim \
|
|
|
|
--without-x \
|
|
|
|
--disable-gui \
|
|
|
|
--enable-multibyte \
|
|
|
|
--enable-cscope \
|
|
|
|
--disable-gpm \
|
2021-06-14 10:09:02 +02:00
|
|
|
--disable-canberra \
|
2021-04-13 10:48:17 +02:00
|
|
|
--disable-nls
|
|
|
|
|
2021-09-12 11:01:59 +02:00
|
|
|
make VIMRTDIR=
|
2021-04-13 10:48:17 +02:00
|
|
|
make -j1 VIMRTDIR= DESTDIR=$PKG install
|
|
|
|
|
|
|
|
mv $PKG/usr/share/vim/vimrc_example.vim $PKG/usr/share/vim/vimrc
|
|
|
|
rm -r $PKG/usr/{share/man/man?/vimtutor*,share/vim/{tutor,macros},bin/vimtutor}
|
|
|
|
rm $PKG/usr/share/vim/*/README.txt
|
|
|
|
rm -rf $PKG/usr/share/{applications,icons}
|
|
|
|
ln -sf vim $PKG/usr/bin/evim
|
|
|
|
ln -sf /bin/vi $PKG/usr/bin/vi
|
|
|
|
ln -sf vim.1.gz $PKG/usr/share/man/man1/ex.1.gz
|
|
|
|
ln -sf vim.1.gz $PKG/usr/share/man/man1/vi.1.gz
|
|
|
|
ln -sf vim.1.gz $PKG/usr/share/man/man1/rvim.1.gz
|
|
|
|
ln -sf vim.1.gz $PKG/usr/share/man/man1/view.1.gz
|
|
|
|
ln -sf vim.1.gz $PKG/usr/share/man/man1/rview.1.gz
|
|
|
|
ln -sf vim.1.gz $PKG/usr/share/man/man1/gvim.1.gz
|
|
|
|
|
|
|
|
./configure \
|
|
|
|
--prefix=/ \
|
|
|
|
--datarootdir=/usr/share \
|
|
|
|
--with-vim-name=vi \
|
|
|
|
--without-x \
|
|
|
|
--disable-gui \
|
|
|
|
--enable-multibyte \
|
|
|
|
--disable-gpm \
|
|
|
|
--disable-nls \
|
|
|
|
--with-features=tiny
|
|
|
|
|
|
|
|
make VIMRTDIR=
|
|
|
|
make -j1 VIMRTDIR= DESTDIR=$PKG installvimbin
|
2006-02-23 16:26:10 +01:00
|
|
|
}
|