core/vim/Pkgfile

70 lines
1.9 KiB
Plaintext
Raw Normal View History

2008-08-13 11:39:13 +02:00
# Description: Highly configurable text editor
# URL: https://www.vim.org/
2021-04-13 10:48:17 +02:00
# Maintainer: CRUX System Team, core-ports at crux dot nu
2023-08-21 21:49:48 +02:00
# Depends on: acl ncurses
2006-02-23 16:26:10 +01:00
name=vim
2024-04-22 10:43:37 +02:00
version=9.1.0363
release=1
2024-02-18 15:19:38 +01:00
_commit=897d46d5fd029945d7373167ec2bf8d8c37079b2
_date=20230703
source=(https://github.com/vim/vim/archive/v${version}/$name-$version.tar.gz \
2024-02-18 15:19:38 +01:00
https://git.crux.nu/tb/Pkgfile.vim/archive/$_commit.tar.gz)
renames=(SKIP Pkgfile-$_date.vim.tar.gz)
2006-02-23 16:26:10 +01:00
2021-04-13 10:48:17 +02:00
build() {
2023-12-24 12:43:51 +01:00
cd $name-$version/src
2023-08-21 21:49:48 +02:00
2023-12-24 12:43:51 +01:00
sed -i '/^CFLAGS/d' Makefile
2023-08-21 21:49:48 +02:00
2023-12-24 12:43:51 +01:00
CFLAGS+=' -flto=auto' \
./configure \
--prefix=/usr \
--with-vim-name=vim \
--with-compiledby="$(crux | awk '{ print $1, $3 }')" \
--enable-multibyte \
--enable-cscope \
--enable-perlinterp=dynamic \
--enable-python3interp=dynamic \
--without-x \
--disable-gui \
--disable-gpm \
--disable-canberra \
--disable-nls
2023-08-21 21:49:48 +02:00
2023-12-24 12:43:51 +01:00
make VIMRTDIR=
make -j1 VIMRTDIR= DESTDIR=$PKG install
2023-08-21 21:49:48 +02:00
2023-12-24 12:43:51 +01:00
mv $PKG/usr/share/vim/vimrc_example.vim $PKG/usr/share/vim/vimrc
rm -r $PKG/usr/share/icons $PKG/usr/share/applications/gvim.desktop
rm -r $PKG/usr/{share/man/man?/vimtutor*,share/vim/{tutor,macros},bin/vimtutor}
rm $PKG/usr/share/vim/*/README.txt
2023-08-21 21:49:48 +02:00
2023-12-24 12:43:51 +01:00
ln -sf vim $PKG/usr/bin/evim
ln -sf /bin/vi $PKG/usr/bin/vi
for i in ex vi rvim view rview; do
ln -sf vim.1.gz $PKG/usr/share/man/man1/${i}.1.gz
done
2023-08-21 21:49:48 +02:00
2023-12-24 12:43:51 +01:00
make distclean
2023-08-21 21:49:48 +02:00
2023-12-24 12:43:51 +01:00
./configure \
--prefix=/ \
--datarootdir=/usr/share \
--with-vim-name=vi \
--with-compiledby="$(crux | awk '{ print $1, $3 }')" \
--with-features=tiny \
--enable-multibyte \
--without-x \
--disable-gui \
--disable-gpm \
--disable-nls
2023-08-21 21:49:48 +02:00
2023-12-24 12:43:51 +01:00
make VIMRTDIR=
make -j1 VIMRTDIR= DESTDIR=$PKG installvimbin
2023-12-24 12:43:51 +01:00
cd $SRC/pkgfile.vim
install -d $PKG/usr/share/vim/vimfiles
cp -r * $PKG/usr/share/vim/vimfiles
2006-02-23 16:26:10 +01:00
}