wok-current view cndrvcups-common/receipt @ rev 17341

slitaz-configs-base: Up (5.5.7); mesa-dri: remove vmwgfx
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Wed Nov 05 23:50:10 2014 +0100 (2014-11-05)
parents c1e059ce9a05
children 20661c276bcf
line source
1 # SliTaz package receipt.
3 PACKAGE="cndrvcups-common"
4 VERSION="1.80"
5 CATEGORY="system-tools"
6 MAINTAINER="jozee@slitaz.org"
7 LICENSE="other"
8 SHORT_DESC="Canon URF2 driver with support for LBP, iR and MF series printers"
9 WEB_SITE="http://www.canon.com.au/pps/colour/imagepress_c1_drivers.aspx"
10 SOURCE="ufr2linuxv180"
11 TARBALL="${SOURCE}.zip"
12 WGET_URL="http://www.service.canon.com.au/drivers/files/$TARBALL"
13 TAGS="printer driver"
15 DEPENDS="cups cairo gtk+"
16 BUILD_DEPENDS="autoconf automake cairo-dev gtk+-dev cups-dev libtool"
18 # Rules to configure and make the package.
20 compile_rules() {
22 cd $src
24 [ -d cndrvcups-common-$VERSION ] || tar xzf Sources/cndrvcups-common-${VERSION}-1.tar.gz
26 cd $src/cndrvcups-common-$VERSION/buftool
27 ./autogen.sh --prefix=/usr $CONFIGURE_ARGS &&
28 make &&
29 make DESTDIR=$DESTDIR LIBDIR=/usr/lib install
31 cd $src/cndrvcups-common-$VERSION/cpca
32 ./autogen.sh --prefix=/usr $CONFIGURE_ARGS &&
33 make &&
34 make DESTDIR=$DESTDIR LIBDIR=$DESTDIR/usr/lib install
36 cd $src/cndrvcups-common-$VERSION/cngplp
37 ./autogen.sh --prefix=/usr $CONFIGURE_ARGS &&
38 make && \
39 make DESTDIR=$DESTDIR install
41 cd $src/cndrvcups-common-$VERSION/c3plmod_ipc
42 make && cp -a $src/cndrvcups-common-$VERSION $DESTDIR
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr/lib \
49 $fs/usr/bin/ \
50 $fs/usr/share/caepcm \
51 $fs/usr/share/licenses/$PACKAGE \
52 $fs/etc
54 cp -a $install/cndrvcups-common-$VERSION/libs/*.so* $fs/usr/lib
55 cp -a $install/cndrvcups-common-$VERSION/libs/cnpkmodule $fs/usr/bin/
56 cp -a $install/cndrvcups-common-$VERSION/libs/c3pldrv $fs/usr/bin/
57 cp -a $install/usr/lib/*.so* $fs/usr/lib
58 cp -a $install/etc $fs
59 cp -a $install/usr $fs
60 cp -a $install/cndrvcups-common-$VERSION/c3plmod_ipc/libcanonc3pl.so.1.0.0 $fs/usr/lib
61 cp -a $install/cndrvcups-common-$VERSION/data/C* $fs/usr/share/caepcm
63 # gzip all ppd files
64 #find $fs/usr/share/cups/model -name "*.ppd" | xargs gzip -n9
66 cd $fs/usr/lib
67 ln -sf libc3pl.so.0.0.1 libc3pl.so.0
68 ln -sf libc3pl.so.0.0.1 libc3pl.so
70 ln -sf libcnaccm.so.1.0 libcnaccm.so.1
71 ln -sf libcnaccm.so.1.0 libcnaccm.so
73 ln -sf libcaepcm.so.1.0 libcaepcm.so.1
74 ln -sf libcaepcm.so.1.0 libcaepcm.so
76 ln -sf libcnlbcm.so.1.0 libcnlbcm.so.1
77 ln -sf libcnlbcm.so.1.0 libcnlbcm.so
79 ln -sf libcaiowrap.so.1.0.0 libcaiowrap.so.1
80 ln -sf libcaiowrap.so.1.0.0 libcaiowrap.so
82 ln -sf libcaiousb.so.1.0.0 libcaiousb.so.1
83 ln -sf libcaiousb.so.1.0.0 libcaiousb.so
85 ln -sf libcanonc3pl.so.1.0.0 libcanonc3pl.so.1
86 ln -sf libcanonc3pl.so.1.0.0 libcanonc3pl.so
87 }