wok rev 9121

cndrvcups-common: fix genpkg_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 05 16:49:29 2011 +0100 (2011-03-05)
parents c3a511cabf2b
children 21ca332597c4
files cndrvcups-common-dev/receipt cndrvcups-common/receipt
line diff
     1.1 --- a/cndrvcups-common-dev/receipt	Sat Mar 05 13:36:09 2011 +0100
     1.2 +++ b/cndrvcups-common-dev/receipt	Sat Mar 05 16:49:29 2011 +0100
     1.3 @@ -12,8 +12,7 @@
     1.4  # Rules to gen a SliTaz package suitable for Tazpkg.
     1.5  genpkg_rules()
     1.6  {
     1.7 -	mkdir -p $fs/usr
     1.8 -	_pkg="$WOK/$WANTED/$SOURCE/Sources/cndrvcups-common-$VERSION"
     1.9 -	cp -a $_pkg/buftool/_pkg/usr/include $fs/usr
    1.10 -	cp -a $_pkg/buftool/_pkg/usr/lib $fs/usr	
    1.11 +	mkdir -p $fs/usr/lib
    1.12 +	cp -a $_pkg/usr/include $fs/usr
    1.13 +	cp -a $_pkg/usr/lib/*.a $fs/usr/lib
    1.14  }
     2.1 --- a/cndrvcups-common/receipt	Sat Mar 05 13:36:09 2011 +0100
     2.2 +++ b/cndrvcups-common/receipt	Sat Mar 05 16:49:29 2011 +0100
     2.3 @@ -17,9 +17,9 @@
     2.4  
     2.5  compile_rules() {
     2.6  	
     2.7 -    cd $src/Sources
     2.8 +    cd $src
     2.9     
    2.10 -    [ -d cndrvcups-common-$VERSION ] || tar xzf cndrvcups-common-${VERSION}-1.tar.gz
    2.11 +    [ -d cndrvcups-common-$VERSION ] || tar xzf Sources/cndrvcups-common-${VERSION}-1.tar.gz
    2.12      
    2.13      cd $src/cndrvcups-common-$VERSION/buftool 
    2.14      ./autogen.sh --prefix=/usr && 
    2.15 @@ -29,7 +29,7 @@
    2.16      cd $src/cndrvcups-common-$VERSION/cpca 
    2.17      ./autogen.sh --prefix=/usr && 
    2.18      make && 
    2.19 -    make DESTDIR=$DESTDIR LIBDIR=$PWD/_pkg/usr/lib install
    2.20 +    make DESTDIR=$DESTDIR LIBDIR=$DESTDIR/usr/lib install
    2.21        
    2.22      cd $src/cndrvcups-common-$VERSION/cngplp 
    2.23      ./autogen.sh --prefix=/usr && 
    2.24 @@ -37,8 +37,9 @@
    2.25      make DESTDIR=$DESTDIR install
    2.26    
    2.27      cd $src/cndrvcups-common-$VERSION/c3plmod_ipc 
    2.28 -    make && cp -a $src/Sources $DESTDIR
    2.29 +    make && cp -a $src/cndrvcups-common-$VERSION $DESTDIR
    2.30  }
    2.31 +cp: can't stat '/home/slitaz/cooking/wok/cndrvcups-common/install/cndrvcups-common-1.80/cpca/_pkg/usr/lib/*.so*': No such file or directory
    2.32  	
    2.33  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.34  genpkg_rules()
    2.35 @@ -52,9 +53,9 @@
    2.36  	cp -a $_pkg/cndrvcups-common-$VERSION/libs/*.so* $fs/usr/lib
    2.37  	cp -a $_pkg/cndrvcups-common-$VERSION/libs/cnpkmodule $fs/usr/bin/
    2.38  	cp -a $_pkg/cndrvcups-common-$VERSION/libs/c3pldrv $fs/usr/bin/
    2.39 -	cp -a $_pkg/cndrvcups-common-$VERSION/cpca/_pkg/usr/lib/*.so* $fs/usr/lib
    2.40 -	cp -a $_pkg/cndrvcups-common-$VERSION/cngplp/_pkg/etc $fs
    2.41 -	cp -a $_pkg/cndrvcups-common-$VERSION/cngplp/_pkg/usr $fs	
    2.42 +	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    2.43 +	cp -a $_pkg/etc $fs
    2.44 +	cp -a $_pkg/usr $fs	
    2.45  	cp -a $_pkg/cndrvcups-common-$VERSION/c3plmod_ipc/libcanonc3pl.so.1.0.0 $fs/usr/lib 
    2.46  	cp -a $_pkg/cndrvcups-common-$VERSION/data/C*   $fs/usr/share/caepcm	
    2.47