wok-current view cndrvcups-common/receipt @ 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 1f84f54aac7a
children 6e4aa591c00b
line source
1 # SliTaz package receipt.
3 PACKAGE="cndrvcups-common"
4 VERSION="1.80"
5 CATEGORY="system-tools"
6 MAINTAINER="jozee@slitaz.org"
7 SHORT_DESC="Canon URF2 driver with support for LBP, iR and MF series printers"
8 WEB_SITE="http://www.canon.com.au/pps/colour/imagepress_c1_drivers.aspx"
9 DEPENDS="cups cairo gtk+"
10 BUILD_DEPENDS="autoconf automake cairo-dev gtk+-dev"
11 SOURCE="ufr2linuxv180"
12 TARBALL="${SOURCE}.zip"
13 WGET_URL="http://www.service.canon.com.au/drivers/files/$TARBALL"
14 TAGS="printer driver"
16 # Rules to configure and make the package.
18 compile_rules() {
20 cd $src
22 [ -d cndrvcups-common-$VERSION ] || tar xzf Sources/cndrvcups-common-${VERSION}-1.tar.gz
24 cd $src/cndrvcups-common-$VERSION/buftool
25 ./autogen.sh --prefix=/usr &&
26 make &&
27 make DESTDIR=$DESTDIR LIBDIR=/usr/lib install
29 cd $src/cndrvcups-common-$VERSION/cpca
30 ./autogen.sh --prefix=/usr &&
31 make &&
32 make DESTDIR=$DESTDIR LIBDIR=$DESTDIR/usr/lib install
34 cd $src/cndrvcups-common-$VERSION/cngplp
35 ./autogen.sh --prefix=/usr &&
36 make && \
37 make DESTDIR=$DESTDIR install
39 cd $src/cndrvcups-common-$VERSION/c3plmod_ipc
40 make && cp -a $src/cndrvcups-common-$VERSION $DESTDIR
41 }
42 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
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/lib \
48 $fs/usr/bin/ \
49 $fs/usr/share/caepcm \
50 $fs/usr/share/licenses/$PACKAGE \
51 $fs/etc
53 cp -a $_pkg/cndrvcups-common-$VERSION/libs/*.so* $fs/usr/lib
54 cp -a $_pkg/cndrvcups-common-$VERSION/libs/cnpkmodule $fs/usr/bin/
55 cp -a $_pkg/cndrvcups-common-$VERSION/libs/c3pldrv $fs/usr/bin/
56 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
57 cp -a $_pkg/etc $fs
58 cp -a $_pkg/usr $fs
59 cp -a $_pkg/cndrvcups-common-$VERSION/c3plmod_ipc/libcanonc3pl.so.1.0.0 $fs/usr/lib
60 cp -a $_pkg/cndrvcups-common-$VERSION/data/C* $fs/usr/share/caepcm
62 # gzip all ppd files
63 #find $fs/usr/share/cups/model -name "*.ppd" | xargs gzip -n9
65 cd $fs/usr/lib
66 ln -sf libc3pl.so.0.0.1 libc3pl.so.0
67 ln -sf libc3pl.so.0.0.1 libc3pl.so
69 ln -sf libcnaccm.so.1.0 libcnaccm.so.1
70 ln -sf libcnaccm.so.1.0 libcnaccm.so
72 ln -sf libcaepcm.so.1.0 libcaepcm.so.1
73 ln -sf libcaepcm.so.1.0 libcaepcm.so
75 ln -sf libcnlbcm.so.1.0 libcnlbcm.so.1
76 ln -sf libcnlbcm.so.1.0 libcnlbcm.so
78 ln -sf libcaiowrap.so.1.0.0 libcaiowrap.so.1
79 ln -sf libcaiowrap.so.1.0.0 libcaiowrap.so
81 ln -sf libcaiousb.so.1.0.0 libcaiousb.so.1
82 ln -sf libcaiousb.so.1.0.0 libcaiousb.so
84 ln -sf libcanonc3pl.so.1.0.0 libcanonc3pl.so.1
85 ln -sf libcanonc3pl.so.1.0.0 libcanonc3pl.so
87 }