wok-4.x view cndrvcups-common/receipt @ rev 12065

fix gtk-engine-nodoka bdeps & genpkg_rules
author Antoine Bodin <gokhlayeh@slitaz.org>
date Fri Mar 09 02:01:06 2012 +0100 (2012-03-09)
parents 6e4aa591c00b
children
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 $CONFIGURE_ARGS &&
26 make &&
27 make DESTDIR=$DESTDIR LIBDIR=/usr/lib install
29 cd $src/cndrvcups-common-$VERSION/cpca
30 ./autogen.sh --prefix=/usr $CONFIGURE_ARGS &&
31 make &&
32 make DESTDIR=$DESTDIR LIBDIR=$DESTDIR/usr/lib install
34 cd $src/cndrvcups-common-$VERSION/cngplp
35 ./autogen.sh --prefix=/usr $CONFIGURE_ARGS &&
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 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/lib \
47 $fs/usr/bin/ \
48 $fs/usr/share/caepcm \
49 $fs/usr/share/licenses/$PACKAGE \
50 $fs/etc
52 cp -a $_pkg/cndrvcups-common-$VERSION/libs/*.so* $fs/usr/lib
53 cp -a $_pkg/cndrvcups-common-$VERSION/libs/cnpkmodule $fs/usr/bin/
54 cp -a $_pkg/cndrvcups-common-$VERSION/libs/c3pldrv $fs/usr/bin/
55 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
56 cp -a $_pkg/etc $fs
57 cp -a $_pkg/usr $fs
58 cp -a $_pkg/cndrvcups-common-$VERSION/c3plmod_ipc/libcanonc3pl.so.1.0.0 $fs/usr/lib
59 cp -a $_pkg/cndrvcups-common-$VERSION/data/C* $fs/usr/share/caepcm
61 # gzip all ppd files
62 #find $fs/usr/share/cups/model -name "*.ppd" | xargs gzip -n9
64 cd $fs/usr/lib
65 ln -sf libc3pl.so.0.0.1 libc3pl.so.0
66 ln -sf libc3pl.so.0.0.1 libc3pl.so
68 ln -sf libcnaccm.so.1.0 libcnaccm.so.1
69 ln -sf libcnaccm.so.1.0 libcnaccm.so
71 ln -sf libcaepcm.so.1.0 libcaepcm.so.1
72 ln -sf libcaepcm.so.1.0 libcaepcm.so
74 ln -sf libcnlbcm.so.1.0 libcnlbcm.so.1
75 ln -sf libcnlbcm.so.1.0 libcnlbcm.so
77 ln -sf libcaiowrap.so.1.0.0 libcaiowrap.so.1
78 ln -sf libcaiowrap.so.1.0.0 libcaiowrap.so
80 ln -sf libcaiousb.so.1.0.0 libcaiousb.so.1
81 ln -sf libcaiousb.so.1.0.0 libcaiousb.so
83 ln -sf libcanonc3pl.so.1.0.0 libcanonc3pl.so.1
84 ln -sf libcanonc3pl.so.1.0.0 libcanonc3pl.so
85 }