wok diff vim-tiny/receipt @ rev 8887

Oups... fix lxlauncher again!
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sun Feb 27 05:13:11 2011 +0100 (2011-02-27)
parents 928de5046af6
children ee65475504e7
line diff
     1.1 --- a/vim-tiny/receipt	Wed Dec 29 21:27:12 2010 +0800
     1.2 +++ b/vim-tiny/receipt	Sun Feb 27 05:13:11 2011 +0100
     1.3 @@ -16,8 +16,6 @@
     1.4  # Rules to configure and make the package.
     1.5  compile_rules()
     1.6  {
     1.7 -	src=vim72
     1.8 -	#test -d $PACKAGE-$VERSION || mv vim72 $PACKAGE-$VERSION
     1.9  	cd $src
    1.10  	
    1.11  	./configure --prefix=/usr \
    1.12 @@ -33,30 +31,21 @@
    1.13  	 --mandir=/usr/share/man $CONFIGURE_ARGS && 
    1.14  	 
    1.15  	make VIMRCLOC=/etc/vim VIMRUNTIMEDIR=/usr/share/vim/$src MAKE="make -e" &&
    1.16 -	make DESTDIR=$PWD/_pkg install
    1.17 +	make DESTDIR=$DESTDIR install
    1.18 +	mkdir -p $DESTDIR/etc/vim
    1.19 +	cp -a $src/runtime/vimrc_example.vim $DESTDIR/etc/vim/vimrc
    1.20  }
    1.21  
    1.22  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.23  genpkg_rules()
    1.24  {
    1.25 -	_pkg="$PWD/vim72/_pkg"
    1.26 -	
    1.27 -	mkdir -p $fs/usr $fs/usr/share $fs/etc/vim
    1.28 +	mkdir -p $fs/usr $fs/usr/share
    1.29  	
    1.30  	cp -a $_pkg/usr/bin $fs/usr
    1.31  	cp -a $_pkg/usr/share/vim $fs/usr/share
    1.32 -	cp -a $WOK/$PACKAGE/vim72/runtime/vimrc_example.vim $fs/etc/vim/vimrc
    1.33  	rm -f $fs/usr/bin/*tutor
    1.34  }
    1.35  
    1.36 -
    1.37 -
    1.38 -# Rules to clean extras dirs or files
    1.39 -clean_wok()
    1.40 -{
    1.41 -	rm -rf $PWD/vim72 2>/dev/null
    1.42 -}
    1.43 -
    1.44  post_install()
    1.45  {
    1.46      local root
    1.47 @@ -84,5 +73,5 @@
    1.48  {
    1.49  	# restore previous symlink
    1.50  	echo "Processing post-remove commands..."
    1.51 -	ln -sf /bin/busybox /bin/vi
    1.52 +	ln -sf /bin/busybox $1/bin/vi
    1.53  }