wok rev 9058

cndrvcups-common: do not compute _pkg
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 04 11:54:05 2011 +0100 (2011-03-04)
parents 01afdb73ff38
children 5100c99f7848
files cndrvcups-common/receipt
line diff
     1.1 --- a/cndrvcups-common/receipt	Fri Mar 04 11:48:11 2011 +0100
     1.2 +++ b/cndrvcups-common/receipt	Fri Mar 04 11:54:05 2011 +0100
     1.3 @@ -17,29 +17,27 @@
     1.4  
     1.5  compile_rules() {
     1.6  	
     1.7 -	src="$WOK/$PACKAGE/$SOURCE/Sources"
     1.8 -    cd $src
     1.9 +    cd $src/Sources
    1.10     
    1.11      [ -d cndrvcups-common-$VERSION ] || tar xzf cndrvcups-common-${VERSION}-1.tar.gz
    1.12      
    1.13      cd $src/cndrvcups-common-$VERSION/buftool 
    1.14      ./autogen.sh --prefix=/usr && 
    1.15      make && 
    1.16 -    make DESTDIR=$PWD/_pkg LIBDIR=/usr/lib install
    1.17 +    make DESTDIR=$DESTDIR LIBDIR=/usr/lib install
    1.18     
    1.19      cd $src/cndrvcups-common-$VERSION/cpca 
    1.20      ./autogen.sh --prefix=/usr && 
    1.21      make && 
    1.22 -    make DESTDIR=$PWD/_pkg LIBDIR=$PWD/_pkg/usr/lib install
    1.23 +    make DESTDIR=$DESTDIR LIBDIR=$PWD/_pkg/usr/lib install
    1.24        
    1.25      cd $src/cndrvcups-common-$VERSION/cngplp 
    1.26      ./autogen.sh --prefix=/usr && 
    1.27      make && \
    1.28 -    make DESTDIR=$PWD/_pkg install
    1.29 +    make DESTDIR=$DESTDIR install
    1.30    
    1.31      cd $src/cndrvcups-common-$VERSION/c3plmod_ipc 
    1.32 -    make     
    1.33 -       
    1.34 +    make && cp -a $src/Sources $DESTDIR
    1.35  }
    1.36  	
    1.37  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.38 @@ -51,8 +49,6 @@
    1.39  			 $fs/usr/share/licenses/$PACKAGE \
    1.40  			 $fs/etc
    1.41  	
    1.42 -	_pkg="$WOK/$PACKAGE/$SOURCE/Sources"
    1.43 -	
    1.44  	cp -a $_pkg/cndrvcups-common-$VERSION/libs/*.so* $fs/usr/lib
    1.45  	cp -a $_pkg/cndrvcups-common-$VERSION/libs/cnpkmodule $fs/usr/bin/
    1.46  	cp -a $_pkg/cndrvcups-common-$VERSION/libs/c3pldrv $fs/usr/bin/