1 # Contributor: Olivier Duclos <olivier.duclos@gmail.com>
3 pkgname=cnijfilter-mp610
6 pkgdesc="Canon drivers for the MP610 printer/scanner with improved PPD files"
8 url="http://support-asia.canon-asia.com"
10 depends=('cups' 'popt' 'ghostscript')
12 source=(http://gdlp01.c-wss.com/gds/0100000841/cnijfilter-common-2.80-1.tar.gz \
13 http://downloads.sourceforge.net/mp610linux/ppdMP610en-1.3.tar.gz)
14 md5sums=('1319f320f9f6651b43e43c0b09af5b73'
15 '98de653a2a2f81533ce8eef1f57b9987')
18 cd $srcdir/cnijfilter-common-2.80/libs
19 ./autogen.sh --prefix=/usr || return 1
21 cd $srcdir/cnijfilter-common-2.80/cngpij
22 ./autogen.sh --prefix=/usr --enable-progpath=/usr/bin || return 1
24 cd $srcdir/cnijfilter-common-2.80/pstocanonij
25 ./autogen.sh --prefix=/usr --enable-progpath=/usr/bin || return 1
27 cd $srcdir/cnijfilter-common-2.80/backend
28 ./autogen.sh --prefix=/usr --enable-progpath=/usr/bin || return 1
30 cd $srcdir/cnijfilter-common-2.80
33 make install DESTDIR=$pkgdir || return 1
35 install -d $pkgdir/usr/lib/bjlib
36 install 327/database/*.tbl $pkgdir/usr/lib/bjlib
37 install 327/libs_bin/*.so.* $pkgdir/usr/lib
38 install -D LICENSE-cnijfilter-2.80E.txt $pkgdir/usr/share/licenses/${pkgname}/license.txt
40 cd $srcdir/cnijfilter-common-2.80/cnijfilter
41 ./autogen.sh --prefix=/usr --program-suffix=mp610 --enable-libpath=/usr/lib/bjlib --enable-binpath=/usr/bin || return 1
43 make install DESTDIR=$pkgdir || return 1
45 # Now we install the updated PPDs from http://mp610.blogspot.com
47 install -d $pkgdir/usr/share/cups/model
48 install canonmp610en.ppd $pkgdir/usr/share/cups/model/
49 install cifmp610.conf $pkgdir/usr/lib/bjlib/