wok-next view cndrvcups-common/receipt @ rev 6827

Add fluidsynth: mv from undigest
author Rohit Joshi <jozee@slitaz.org>
date Tue Oct 19 21:12:16 2010 -0400 (2010-10-19)
parents f7e96b8e3444
children 1f84f54aac7a
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 src="$WOK/$PACKAGE/$SOURCE/Sources"
21 cd $src
23 [ -d cndrvcups-common-$VERSION ] || tar xzf cndrvcups-common-${VERSION}-1.tar.gz
25 cd $src/cndrvcups-common-$VERSION/buftool
26 ./autogen.sh --prefix=/usr &&
27 make &&
28 make DESTDIR=$PWD/_pkg LIBDIR=/usr/lib install
30 cd $src/cndrvcups-common-$VERSION/cpca
31 ./autogen.sh --prefix=/usr &&
32 make &&
33 make DESTDIR=$PWD/_pkg LIBDIR=$PWD/_pkg/usr/lib install
35 cd $src/cndrvcups-common-$VERSION/cngplp
36 ./autogen.sh --prefix=/usr &&
37 make && \
38 make DESTDIR=$PWD/_pkg install
40 cd $src/cndrvcups-common-$VERSION/c3plmod_ipc
41 make
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 _pkg="$WOK/$PACKAGE/$SOURCE/Sources"
56 cp -a $_pkg/cndrvcups-common-$VERSION/libs/*.so* $fs/usr/lib
57 cp -a $_pkg/cndrvcups-common-$VERSION/libs/cnpkmodule $fs/usr/bin/
58 cp -a $_pkg/cndrvcups-common-$VERSION/libs/c3pldrv $fs/usr/bin/
59 cp -a $_pkg/cndrvcups-common-$VERSION/cpca/_pkg/usr/lib/*.so* $fs/usr/lib
60 cp -a $_pkg/cndrvcups-common-$VERSION/cngplp/_pkg/etc $fs
61 cp -a $_pkg/cndrvcups-common-$VERSION/cngplp/_pkg/usr $fs
62 cp -a $_pkg/cndrvcups-common-$VERSION/c3plmod_ipc/libcanonc3pl.so.1.0.0 $fs/usr/lib
63 cp -a $_pkg/cndrvcups-common-$VERSION/data/C* $fs/usr/share/caepcm
65 # gzip all ppd files
66 #find $fs/usr/share/cups/model -name "*.ppd" | xargs gzip -n9
68 cd $fs/usr/lib
69 ln -sf libc3pl.so.0.0.1 libc3pl.so.0
70 ln -sf libc3pl.so.0.0.1 libc3pl.so
72 ln -sf libcnaccm.so.1.0 libcnaccm.so.1
73 ln -sf libcnaccm.so.1.0 libcnaccm.so
75 ln -sf libcaepcm.so.1.0 libcaepcm.so.1
76 ln -sf libcaepcm.so.1.0 libcaepcm.so
78 ln -sf libcnlbcm.so.1.0 libcnlbcm.so.1
79 ln -sf libcnlbcm.so.1.0 libcnlbcm.so
81 ln -sf libcaiowrap.so.1.0.0 libcaiowrap.so.1
82 ln -sf libcaiowrap.so.1.0.0 libcaiowrap.so
84 ln -sf libcaiousb.so.1.0.0 libcaiousb.so.1
85 ln -sf libcaiousb.so.1.0.0 libcaiousb.so
87 ln -sf libcanonc3pl.so.1.0.0 libcanonc3pl.so.1
88 ln -sf libcanonc3pl.so.1.0.0 libcanonc3pl.so
90 }