1 # Maintainer: Dimitar Yordanov
2 # Modified original script from:
5 pkgname=cnijfilter-mp560
9 pkgdesc="Canon IJ Printer Driver (MP560 series)"
10 url="http://software.canon-europe.com/products/0010756.asp"
13 depends=('patch' 'libcups' 'cups' 'popt' 'ghostscript' 'gsfonts' 'atk>=1.9.0' 'gtk2>=2.8.0' 'pango>=1.12.3' 'libpng>=1.2.8' 'libtiff' 'cairo>=1.0.2' 'libxml2>=2.6.24' 'fontconfig>=2.3.0' 'libxinerama')
14 makedepends=('autoconf>=2.13' 'automake>=1.6' 'tar' 'make' 'gcc')
15 conflicts=('cnijfilter-common')
16 install=cnijfilter-mp560.install
17 source=(http://gdlp01.c-wss.com/gds/7/0100002367/01/cnijfilter-source-3.20-1.tar.gz \
19 md5sums=('0a40b46016511d59d1d0a3d3d9a653dd' 'f3d01db16494ae9ca16d9be8e9cd193b')
22 patch -p0 -d ${srcdir}/cnijfilter-source-${pkgver}-${pkgsubver}/ppd < grayscale.patch
24 cd ${srcdir}/cnijfilter-source-${pkgver}-${pkgsubver}/libs
26 ./autogen.sh --prefix=/usr --program-suffix=mp560
28 make install DESTDIR=${pkgdir} || return 1
30 cd ${srcdir}/cnijfilter-source-${pkgver}-${pkgsubver}/cngpij
31 ./autogen.sh --prefix=/usr --program-suffix=mp560 --enable-progpath=/usr/bin
33 make install DESTDIR=${pkgdir} || return 1
35 cd ${srcdir}/cnijfilter-source-${pkgver}-${pkgsubver}/cnijfilter
36 ./autogen.sh --prefix=/usr --program-suffix=mp560 --enable-progpath=/usr/bin
38 make install DESTDIR=${pkgdir} || return 1
40 cd ${srcdir}/cnijfilter-source-${pkgver}-${pkgsubver}/pstocanonij
41 ./autogen.sh --prefix=/usr --program-suffix=mp560 --enable-progpath=/usr/bin
43 make install DESTDIR=${pkgdir} || return 1
45 cd ${srcdir}/cnijfilter-source-${pkgver}-${pkgsubver}/lgmon
46 ./autogen.sh --prefix=/usr --program-suffix=mp560 --enable-progpath=/usr/bin
48 make install DESTDIR=${pkgdir} || return 1
50 cd ${srcdir}/cnijfilter-source-${pkgver}-${pkgsubver}/backend
51 ./autogen.sh --prefix=/usr --program-suffix=mp560 --enable-progpath=/usr/bin
53 make install DESTDIR=${pkgdir} || return 1
55 cd ${srcdir}/cnijfilter-source-${pkgver}-${pkgsubver}/backendnet
56 ./autogen.sh --prefix=/usr --program-suffix=mp560 --enable-progpath=/usr/bin
58 make install DESTDIR=${pkgdir} || return 1
60 cd ${srcdir}/cnijfilter-source-${pkgver}-${pkgsubver}/cngpijmon/cnijnpr
61 ./autogen.sh --prefix=/usr --program-suffix=mp560 --enable-progpath=/usr/bin
63 make install DESTDIR=${pkgdir} || return 1
65 cd ${srcdir}/cnijfilter-source-${pkgver}-${pkgsubver}/ppd
66 ./autogen.sh --prefix=/usr --program-suffix=mp560
68 make install DESTDIR=${pkgdir} || return 1
70 cd ${srcdir}/cnijfilter-source-${pkgver}-${pkgsubver}
71 install -d ${pkgdir}/usr/lib/bjlib
72 install -m 755 360/database/* ${pkgdir}/usr/lib/bjlib
73 install -s -m 755 360/libs_bin/*.so.* ${pkgdir}/usr/lib
74 install -s -m 755 com/libs_bin/*.so.* ${pkgdir}/usr/lib
75 install -D LICENSE-cnijfilter-${pkgver}EN.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-cnijfilter-${pkgver}EN.txt