core/vim/Pkgfile

54 lines
1.7 KiB
Plaintext
Raw Permalink Normal View History

2008-08-13 11:39:13 +02:00
# Description: Highly configurable text editor
2006-02-23 16:26:10 +01:00
# URL: http://www.vim.org/
2007-05-13 10:45:47 +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
2019-03-08 12:45:51 +01:00
version=8.1.0999
2007-05-13 10:45:47 +02:00
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
build () {
2017-09-08 11:11:45 +02:00
cd $name-$version/src
2017-04-25 16:47:58 +02:00
sed -i '/^CFLAGS/d' Makefile
2010-11-05 17:20:48 +01:00
2006-02-23 16:26:10 +01:00
./configure --prefix=/usr \
2007-04-19 18:22:16 +02:00
--with-vim-name=vim \
2011-04-04 09:20:21 +02:00
--without-x \
--disable-gui \
2007-04-19 18:22:16 +02:00
--enable-multibyte \
2016-03-17 10:27:20 +01:00
--enable-cscope \
2007-04-19 18:22:16 +02:00
--disable-gpm \
--disable-nls
2011-04-04 09:20:21 +02:00
make VIMRTDIR=
make -j1 VIMRTDIR= DESTDIR=$PKG install
2006-09-24 11:55:58 +02:00
2006-02-23 16:26:10 +01:00
mv $PKG/usr/share/vim/vimrc_example.vim $PKG/usr/share/vim/vimrc
2015-07-25 20:51:52 +02:00
rm -r $PKG/usr/{share/man/man?/vimtutor*,share/vim/{tutor,macros},bin/vimtutor}
2008-01-29 10:20:42 +01:00
rm $PKG/usr/share/vim/*/README.txt
2016-09-24 18:19:03 +02:00
rm -rf $PKG/usr/share/{applications,icons}
2006-02-23 16:26:10 +01:00
ln -sf vim $PKG/usr/bin/evim
ln -sf /bin/vi $PKG/usr/bin/vi
2015-07-25 20:51:52 +02:00
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
2007-02-16 12:43:21 +01:00
./configure --prefix=/ \
2011-04-04 09:20:21 +02:00
--datarootdir=/usr/share \
2007-02-16 12:43:21 +01:00
--with-vim-name=vi \
2011-04-04 09:20:21 +02:00
--without-x \
--disable-gui \
2007-02-16 12:43:21 +01:00
--enable-multibyte \
--disable-gpm \
--disable-nls \
--with-features=tiny
2011-04-04 09:20:21 +02:00
make VIMRTDIR=
make -j1 VIMRTDIR= DESTDIR=$PKG installvimbin
2006-02-23 16:26:10 +01:00
}