wok-6.x view cndrvcups-common/receipt @ rev 15180

mosh: update deps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 20 11:57:56 2013 +0000 (2013-08-20)
parents b7319995b37e
children c1e059ce9a05
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 SOURCE="ufr2linuxv180"
10 TARBALL="${SOURCE}.zip"
11 WGET_URL="http://www.service.canon.com.au/drivers/files/$TARBALL"
12 TAGS="printer driver"
14 DEPENDS="cups cairo gtk+"
15 BUILD_DEPENDS="autoconf automake cairo-dev gtk+-dev cups-dev"
17 # Rules to configure and make the package.
19 compile_rules() {
21 cd $src
23 [ -d cndrvcups-common-$VERSION ] || tar xzf Sources/cndrvcups-common-${VERSION}-1.tar.gz
25 cd $src/cndrvcups-common-$VERSION/buftool
26 ./autogen.sh --prefix=/usr $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$DESTDIR LIBDIR=/usr/lib install
30 cd $src/cndrvcups-common-$VERSION/cpca
31 ./autogen.sh --prefix=/usr $CONFIGURE_ARGS &&
32 make &&
33 make DESTDIR=$DESTDIR LIBDIR=$DESTDIR/usr/lib install
35 cd $src/cndrvcups-common-$VERSION/cngplp
36 ./autogen.sh --prefix=/usr $CONFIGURE_ARGS &&
37 make && \
38 make DESTDIR=$DESTDIR install
40 cd $src/cndrvcups-common-$VERSION/c3plmod_ipc
41 make && cp -a $src/cndrvcups-common-$VERSION $DESTDIR
42 }
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 $install/cndrvcups-common-$VERSION/libs/*.so* $fs/usr/lib
54 cp -a $install/cndrvcups-common-$VERSION/libs/cnpkmodule $fs/usr/bin/
55 cp -a $install/cndrvcups-common-$VERSION/libs/c3pldrv $fs/usr/bin/
56 cp -a $install/usr/lib/*.so* $fs/usr/lib
57 cp -a $install/etc $fs
58 cp -a $install/usr $fs
59 cp -a $install/cndrvcups-common-$VERSION/c3plmod_ipc/libcanonc3pl.so.1.0.0 $fs/usr/lib
60 cp -a $install/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
86 }