updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / cnijfilter-ip4500-complete / PKGBUILD
blobd030b470741e5f5dfe73bf46f6dee494ea7aa713
1 # Contributor: Joffrey Tisseron <tisseron.joffrey@aliceadsl.fr>
3 pkgname=cnijfilter-ip4500-complete
4 pkgver=2.80
5 pkgrel=2
6 pkgdesc="Canon IJ Printer Driver for Pixma IP4500 series Inkjet Printers with cnijfilter-common files."
7 arch=('x86_64')
8 url="http://software.canon-europe.com/software/0028476.asp"
9 license=('custom')
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')
22 build() {
23     mkdir ${pkgdir}/usr
24     mkdir ${pkgdir}/usr/bin
25     mkdir ${pkgdir}/usr/lib
26     mkdir ${pkgdir}/usr/share
28     cd ${srcdir}
29     rm *.deb
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/      
35     rm -r 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/
41     
42     mkdir ${pkgdir}/usr/share/cups
43     mkdir ${pkgdir}/usr/share/cups/model
44     
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