1 # Contributor: Eric Le Bras <eric.lebras@gmail.com>
3 pkgname=cnijfilter-ip3300
6 pkgdesc="Canon IJ Printer Driver for Pixma IP3300 multifunction"
8 url="http://support-au.canon.com.au/contents/AU/EN/0900718516.html"
9 license=('GPL2' 'LGPL2' 'custom')
10 depends=('cnijfilter-common270' 'gtk' 'libxml' 'libglade')
11 makedepends=('rpmextract autoconf>=2.13' 'automake>=1.6' 'tar' 'make' 'gcc')
12 install=cnijfilter-ip3300.install
13 source=("http://gdlp01.c-wss.com/gds/5/0900007185/02/cnijfilter-common-${pkgver}-2.src.rpm"
14 cngpijmonip3300.desktop
15 printuiip3300.desktop)
16 md5sums=('478aa71f6f4c81ef788d2136152af4c3'
17 'c4112fb2ad794da564becb8c7644202f'
18 '0d999be93315625d6d78db1763be81b5')
22 rpmextract.sh cnijfilter-common-${pkgver}-2.src.rpm
23 tar xzf cnijfilter-common-${pkgver}-2.tar.gz
25 cd ${srcdir}/cnijfilter-common-${pkgver}/ppd
26 ./autogen.sh --prefix=/usr || return 1
27 make install DESTDIR=${pkgdir} || return 1
29 cd ${srcdir}/cnijfilter-common-${pkgver}/cnijfilter
30 ./autogen.sh --prefix=/usr --program-suffix=ip3300 --enable-libpath=/usr/lib/bjlib --enable-binpath=/usr/bin || return 1
33 make install DESTDIR=${pkgdir} || return 1
35 cd ${srcdir}/cnijfilter-common-${pkgver}/printui
36 ./autogen.sh --prefix=/usr --program-suffix=ip3300 --datadir=/usr/share || return 1
39 make install DESTDIR=${pkgdir} || return 1
41 cd ${srcdir}/cnijfilter-common-${pkgver}/lgmon
42 ./autogen.sh --prefix=/usr --program-suffix=ip3300 --enable-progpath=/usr/bin || return 1
45 make install DESTDIR=${pkgdir} || return 1
47 cd ${srcdir}/cnijfilter-common-${pkgver}/cngpijmon
48 ./autogen.sh --prefix=/usr --program-suffix=ip3300 || return 1
51 make install DESTDIR=${pkgdir} || return 1
53 cd ${srcdir}/cnijfilter-common-${pkgver}
54 install -d ${pkgdir}/usr/lib/bjlib
55 install -m 755 292/database/* ${pkgdir}/usr/lib/bjlib
56 install -s -m 755 292/libs_bin/*.so.* ${pkgdir}/usr/lib
57 install -D LICENSE-cnijfilter-${pkgver}E.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-cnijfilter-${pkgver}E.txt
59 install -Dm644 "$srcdir/cngpijmonip3300.desktop" "$pkgdir/usr/share/applications/cngpijmonip3300.desktop"
60 install -Dm644 "$srcdir/printuiip3300.desktop" "$pkgdir/usr/share/applications/printuiip3300.desktop"
62 rm -rf ${pkgdir}/usr/lib/cups/
63 rm ${pkgdir}/usr/share/cups/model/canonip{4300,2500,1800,90}
64 rm ${pkgdir}/usr/share/cups/model/canonmp*.ppd