wok rev 25405

made vim-tiny as tiny as possible
author Hans-G?nter Theisgen
date Wed Aug 03 15:11:06 2022 +0100 (2 months ago)
parents 5fd42c74daba
children 8d429ff324a2
files vim-tiny/receipt
line diff
     1.1 --- a/vim-tiny/receipt	Tue Aug 02 16:36:52 2022 +0100
     1.2 +++ b/vim-tiny/receipt	Wed Aug 03 15:11:06 2022 +0100
     1.3 @@ -60,35 +60,37 @@
     1.4  
     1.5  	mkdir -p $DESTDIR/etc/vim
     1.6  	cp -a $src/runtime/vimrc_example.vim	$DESTDIR/etc/vim/vimrc
     1.7 +
     1.8 +	rm -rf				$DESTDIR/usr/share/applications
     1.9  }
    1.10  
    1.11  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.12  genpkg_rules()
    1.13  {
    1.14 -	mkdir -p $fs/usr/share
    1.15  	mkdir -p $fs/etc
    1.16 +	mkdir -p $fs/usr/bin
    1.17 +	mkdir -p $fs/usr/share/vim/vim$basever
    1.18  
    1.19 -	cp -a $install/usr/bin		$fs/usr
    1.20 -	cp -a $install/usr/share/vim	$fs/usr/share
    1.21  	cp -a $install/etc/vim		$fs/etc
    1.22 -
    1.23 -	rm -f				$fs/usr/share/vim/vim$basedir/tutor/*
    1.24 +	cp -a $install/usr/bin/vim-tiny	$fs/usr/bin
    1.25 +	cp -a $install/usr/share/vim/vim$basever/defaults.vim \
    1.26 +					$fs/usr/share/vim/vim$basever
    1.27  }
    1.28  
    1.29  post_install()
    1.30  {
    1.31  	cmd=$(readlink "$1/bin/vi")
    1.32 -	if [ "$cmd" != '/usr/bin/vim' ]
    1.33 +	if [ "$cmd" != '/usr/bin/vim-tiny' ]
    1.34  	  then
    1.35  		echo ''
    1.36  		echo "**** Actual VI link : $cmd"
    1.37  		echo ''
    1.38 -		echo -n 'Do you want vim  for /bin/vi (y/N) ? : '
    1.39 +		echo -n 'Do you want vim-tiny  for /bin/vi (y/N) ? : '
    1.40  		read -t 30 anser
    1.41  		if [ "$anser" = 'y' ]
    1.42  		  then
    1.43  			echo ''
    1.44 -			action 'Removing vi link to make a new one pointing on /usr/bin/vim...'
    1.45 +			action 'Removing vi link to make a new one pointing to /usr/bin/vim-tiny...'
    1.46  			rm "$1/bin/vi" &&
    1.47  			ln -sf /usr/bin/vim-tiny "$1/bin/vi"
    1.48  			status