wok-current diff w3m/receipt @ rev 14507

Add get-src2pkg
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue May 14 07:26:31 2013 +0200 (2013-05-14)
parents 2b1b306b8dde
children 23c3aed67cd9
line diff
     1.1 --- a/w3m/receipt	Thu Mar 14 05:13:26 2013 +0000
     1.2 +++ b/w3m/receipt	Tue May 14 07:26:31 2013 +0200
     1.3 @@ -15,7 +15,16 @@
     1.4  # Rules to configure and make the package.
     1.5  compile_rules()
     1.6  {
     1.7 -	./configure $CONFIGURE_ARGS && make && make install
     1.8 +       cd $src
     1.9 +       for i in  $stuff/*.patch
    1.10 +       do
    1.11 +	        if [ -f done.$(basename $i) ]; then
    1.12 +		       continue
    1.13 +	        else
    1.14 +		       patch -p0 < $i && touch done.$(basename $i) || return 1
    1.15 +	        fi
    1.16 +	done
    1.17 +       ./configure $CONFIGURE_ARGS && make && make install
    1.18  }
    1.19  
    1.20  # Rules to gen a SliTaz package suitable for Tazpkg.