wok diff vim/receipt @ rev 8946
Up: thunderbird to 3.1.8.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Mar 01 16:55:18 2011 +0000 (2011-03-01) |
parents | 403fb8adf07d |
children | ab3455634715 |
line diff
1.1 --- a/vim/receipt Wed Dec 29 01:36:22 2010 +0000 1.2 +++ b/vim/receipt Tue Mar 01 16:55:18 2011 +0000 1.3 @@ -15,7 +15,6 @@ 1.4 # Rules to configure and make the package. 1.5 compile_rules() 1.6 { 1.7 - src="vim72" 1.8 cd $src 1.9 1.10 ./configure --prefix=/usr \ 1.11 @@ -29,30 +28,21 @@ 1.12 --mandir=/usr/share/man $CONFIGURE_ARGS && 1.13 1.14 make VIMRCLOC=/etc/vim VIMRUNTIMEDIR=/usr/share/vim/$src MAKE="make -e" && 1.15 - make DESTDIR=$PWD/_pkg install 1.16 + make DESTDIR=$DESTDIR install 1.17 + mkdir -p $DESTDIR/etc/vim 1.18 + cp -a $src/runtime/vimrc_example.vim $DESTDIR/etc/vim/vimrc 1.19 } 1.20 1.21 # Rules to gen a SliTaz package suitable for Tazpkg. 1.22 genpkg_rules() 1.23 { 1.24 - _pkg="$PWD/vim72/_pkg" 1.25 - 1.26 - mkdir -p $fs/usr $fs/usr/share $fs/etc/vim 1.27 + mkdir -p $fs/usr $fs/usr/share 1.28 1.29 cp -a $_pkg/usr/bin $fs/usr 1.30 cp -a $_pkg/usr/share/vim $fs/usr/share 1.31 - cp -a $WOK/$PACKAGE/vim72/runtime/vimrc_example.vim $fs/etc/vim/vimrc 1.32 rm -f $fs/usr/bin/*vimtutor 1.33 } 1.34 1.35 - 1.36 - 1.37 -# Rules to clean extras dirs or files 1.38 -clean_wok() 1.39 -{ 1.40 - rm -rf $PWD/vim72 2>/dev/null 1.41 -} 1.42 - 1.43 post_install() 1.44 { 1.45 local root 1.46 @@ -80,5 +70,5 @@ 1.47 { 1.48 # restore previous symlink 1.49 echo "Processing post-remove commands..." 1.50 - ln -sf /bin/busybox /bin/vi 1.51 + ln -sf /bin/busybox $1/bin/vi 1.52 }