1 # Contributor: vbPadre <vbpadre@gmail.com>
2 # Contributor: thesilverring <emalnotsupplied@gmail.com>
3 pkgname=canon-cndrvcups
6 pkgversionname=`echo $pkgver|sed -e 's#\.##'`
7 pkgdesc="Canon Printer Driver Common Module for Linux"
9 url="http://www.usa.canon.com/cusa/support/consumer/printers_multifunction/imageclass_series"
10 license=('GPL' 'MIT' 'custom')
11 depends=('libcups' 'gtk2' 'libglade' 'libxml2')
12 makedepends=('automake' 'autoconf')
13 source=("http://gdlp01.c-wss.com/gds/0/0100003440/02/Linux_UFRII_PrinterDriver_V${pkgversionname}_us_EN.tar.gz")
14 options=('!emptydirs')
15 md5sums=('223a4019a79d3229f81cc6e37d8f3a8a')
19 cd $srcdir/Linux_UFRII_PrinterDriver_V${pkgversionname}_us_EN/Sources
20 tar xf cndrvcups-common-${pkgver}-1.tar.gz || return 1
22 cd cndrvcups-common-${pkgver}
26 ./autogen.sh --prefix=/usr && \
28 make DESTDIR=${pkgdir} install
33 ./autogen.sh --prefix=/usr && \
35 make DESTDIR=${pkgdir} LIBDIR=/usr/lib install
41 make DESTDIR=${pkgdir} LIBDIR=/usr/lib install
45 install -c -m 4755 libs/c3pldrv $pkgdir/usr/bin
47 install -c -m 755 libs/libcaiowrap.so.1.0.0 $pkgdir/usr/lib
48 install -c -m 755 libs/libcaiousb.so.1.0.0 $pkgdir/usr/lib
49 install -c -m 755 libs/libc3pl.so.0.0.1 $pkgdir/usr/lib
50 install -c -m 755 libs/libcaepcm.so.1.0 $pkgdir/usr/lib
51 install -c -m 755 c3plmod_ipc/libcanonc3pl.so.1.0.0 $pkgdir/usr/lib
52 install -c -m 755 libs/libcanon_slim.so.1.0.0 $pkgdir/usr/lib
56 ln -sf libc3pl.so.0.0.1 libc3pl.so.0
57 ln -sf libc3pl.so.0.0.1 libc3pl.so
58 ln -sf libcaepcm.so.1.0 libcaepcm.so.1
59 ln -sf libcaepcm.so.1.0 libcaepcm.so
60 ln -sf libcaiowrap.so.1.0.0 libcaiowrap.so.1
61 ln -sf libcaiowrap.so.1.0.0 libcaiowrap.so
62 ln -sf libcaiousb.so.1.0.0 libcaiousb.so.1
63 ln -sf libcaiousb.so.1.0.0 libcaiousb.so
64 ln -sf libcanonc3pl.so.1.0.0 libcanonc3pl.so.1
65 ln -sf libcanonc3pl.so.1.0.0 libcanonc3pl.so
66 ln -sf libcanon_slim.so.1.0.0 libcanon_slim.so.1
67 ln -sf libcanon_slim.so.1.0.0 libcanon_slim.so
70 mkdir -p $pkgdir/usr/share/caepcm
71 install -c -m 644 data/CA* $pkgdir/usr/share/caepcm
72 install -c -m 644 data/CNZ0* $pkgdir/usr/share/caepcm
75 cd $srcdir/Linux_UFRII_PrinterDriver_V${pkgversionname}_us_EN/Sources
76 tar xf cndrvcups-lb-${pkgver}-1.tar.gz || return 1
78 cd cndrvcups-lb-$pkgver
81 ./autogen.sh --prefix=/usr \
85 --program-prefix="" && \
88 ( cd pstoufr2cpca && \
89 ./autogen.sh --prefix=/usr \
90 --enable-progpath=/usr/bin \
94 --program-prefix="" && \
98 ./autogen.sh --prefix=/usr \
101 --program-suffix="" \
102 --program-prefix="" && \
107 ./autogen.sh --prefix=/usr && \
109 make DESTDIR=${pkgdir} LIBDIR=/usr/lib install
114 ./autogen.sh --prefix=/usr && \
115 ./configure --prefix=/usr && \
117 make DESTDIR=${pkgdir} install
120 make DESTDIR=${pkgdir} install || return 1
121 mkdir -p $pkgdir/usr/lib
122 install -c libs/libcanonufr2.la $pkgdir/usr/lib || return 1
123 install -c -s libs/libcanonufr2.so.1.0.0 $pkgdir/usr/lib || return 1
124 install -c -s libs/libufr2filter.so.1.0.0 $pkgdir/usr/lib || return 1
125 install -c -s libs/libEnoJBIG.so.1.0.0 $pkgdir/usr/lib || return 1
126 install -c -s libs/libcaiocnpkbidi.so.1.0.0 $pkgdir/usr/lib || return 1
128 mkdir -p $pkgdir/usr/bin
129 install -c -s libs/cnpkbidi $pkgdir/usr/bin || return 1
133 ln -sf libcanonufr2.so.1.0.0 liblibcanonufr2.so.1
134 ln -sf libcanonufr2.so.1.0.0 libcanonufr2.so
135 ln -sf libufr2filter.so.1.0.0 libufr2filter.so.1
136 ln -sf libufr2filter.so.1.0.0 libufr2filter.so
137 ln -sf libEnoJBIG.so.1.0.0 libEnoJBIG.so.1
138 ln -sf libEnoJBIG.so.1.0.0 libEnoJBIG.so
139 ln -sf libcaiocnpkbidi.so.1.0.0 libcaiocnpkbidi.so.1
140 ln -sf libcaiocnpkbidi.so.1.0.0 libcaiocnpkbidi.so
143 mkdir -p $pkgdir/usr/share/caepcm
144 install -c -m 644 data/C* $pkgdir/usr/share/caepcm || return 1
146 mkdir -p $pkgdir/usr/share/cnpkbidi
147 install -c -m 644 libs/cnpkbidi* $pkgdir/usr/share/cnpkbidi || return 1
149 mkdir -p $pkgdir/usr/share/ufr2filter
150 install -c -m 644 libs/ThLB* $pkgdir/usr/share/ufr2filter || return 1