1 # Contributor: Joffrey Tisseron <tisseron.joffrey@aliceadsl.fr>
3 pkgname=cnijfilter-ip4500-complete
6 pkgdesc="Canon IJ Printer Driver for Pixma IP4500 series Inkjet Printers with cnijfilter-common files."
8 url="http://software.canon-europe.com/software/0028476.asp"
11 depends=('cups' 'lib32-libpng12' 'lib32-e2fsprogs' 'lib32-gnutls'
12 'lib32-heimdal' 'lib32-libcups' 'lib32-libgcrypt' 'lib32-libgpg-error'
13 'lib32-libtasn1' 'lib32-openssl' 'lib32-popt' 'lib32-sqlite3')
14 makedepends=('rpmextract')
16 source=('http://files.canon-europe.com/files/soft28476/software/28476.tgz'
17 'canonip4500.ppd.patch')
18 install=cnijfilter-ip4500.install
19 md5sums=('5daca73347d7db20920f4fdcd661c33c'
20 '9378f8b1d4ff3992f3d87c7ebfe04502')
24 mkdir ${pkgdir}/usr/bin
25 mkdir ${pkgdir}/usr/lib
26 mkdir ${pkgdir}/usr/share
31 rpmextract.sh cnijfilter-common-${pkgver}-1.i386.rpm || return 1
32 cp -r usr/local/bin ${pkgdir}/usr/
33 cp -r usr/lib ${pkgdir}/usr/
34 cp -r usr/share ${pkgdir}/usr/
37 rpmextract.sh cnijfilter-ip4500series-${pkgver}-1.i386.rpm || return 1
38 cp -r usr/local/bin ${pkgdir}/usr/
39 cp -r usr/lib ${pkgdir}/usr/
40 cp -r usr/local/share ${pkgdir}/usr/
42 mkdir ${pkgdir}/usr/share/cups
43 mkdir ${pkgdir}/usr/share/cups/model
45 cd usr/share/cups/model
46 patch canonip4500.ppd ${startdir}/canonip4500.ppd.patch || return 1
47 install -D canonip4500.ppd ${pkgdir}/usr/share/cups/model/canonip4500.ppd || return 1