1 # Contributor: alessiofachechi <alessio.fachechi@gmail.com>
2 # Special thanks to: olive, mirrr, GUiHKX
4 pkgname=cnijfilter-mp250
9 pkgdesc="Canon IJ Printer Driver (MP250 series)"
10 url="http://support-au.canon.com.au/contents/AU/EN/0100302002.html"
11 arch=('i686' 'x86_64')
13 depends=('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-mp250.install
17 source=('http://gdlp01.c-wss.com/gds/0/0100003020/01/cnijfilter-source-3.40-1.tar.gz'
19 md5sums=('609975a05d6050fcca88f312d3f35c6a'
20 'd8dd2d723a15681a6092d506b5106047')
23 cd ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/
24 patch -p0 < ${startdir}/fix.patch
26 cd ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/libs
27 ./autogen.sh --prefix=/usr --program-suffix=mp250
29 make install DESTDIR=${pkgdir} || return 1
31 cd ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/cngpij
32 ./autogen.sh --prefix=/usr --program-suffix=mp250 --enable-progpath=/usr/bin
34 make install DESTDIR=${pkgdir} || return 1
36 cd ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/cnijfilter
37 ./autogen.sh --prefix=/usr --program-suffix=mp250 --enable-progpath=/usr/bin
39 make install DESTDIR=${pkgdir} || return 1
41 cd ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/pstocanonij
42 ./autogen.sh --prefix=/usr --program-suffix=mp250 --enable-progpath=/usr/bin
44 make install DESTDIR=${pkgdir} || return 1
46 cd ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/lgmon
47 ./autogen.sh --prefix=/usr --program-suffix=mp250 --enable-progpath=/usr/bin
49 make install DESTDIR=${pkgdir} || return 1
51 cd ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/ppd
52 ./autogen.sh --prefix=/usr --program-suffix=mp250
54 make install DESTDIR=${pkgdir} || return 1
56 cd ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/cngpijmon/cnijnpr
57 ./autogen.sh --prefix=/usr --program-suffix=mp250 --enable-progpath=/usr/bin LIBS="-ldl"
59 make install DESTDIR=${pkgdir} || return 1
61 cd ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/backend
62 ./autogen.sh --prefix=/usr --program-suffix=mp250 --enable-progpath=/usr/bin
64 make install DESTDIR=${pkgdir} || return 1
66 cd ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/backendnet
67 ./autogen.sh --prefix=/usr --program-suffix=mp250 --enable-progpath=/usr/bin
69 make install DESTDIR=${pkgdir} || return 1
71 cd ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}
72 install -d ${pkgdir}/usr/lib/bjlib
73 install -m 755 356/database/* ${pkgdir}/usr/lib/bjlib
75 if [ "$CARCH" == "x86_64" ]; then
80 install -m 755 ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/356/${libdir}/libcnbpcmcm356.so.8.0.1 ${pkgdir}/usr/lib/
81 install -m 755 ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/356/${libdir}/libcnbpcnclapi356.so.3.5.0 ${pkgdir}/usr/lib/
82 install -m 755 ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/356/${libdir}/libcnbpcnclbjcmd356.so.3.3.0 ${pkgdir}/usr/lib/
83 install -m 755 ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/356/${libdir}/libcnbpcnclui356.so.3.6.0 ${pkgdir}/usr/lib/
84 install -m 755 ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/356/${libdir}/libcnbpess356.so.3.3.3 ${pkgdir}/usr/lib/
85 install -m 755 ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/356/${libdir}/libcnbpess356.so.3.3.3 ${pkgdir}/usr/lib/
86 install -m 755 ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/356/${libdir}/libcnbpo356.so.1.0.2 ${pkgdir}/usr/lib/
87 install -m 755 ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/com/${libdir}/libcnnet.so.1.2.0 ${pkgdir}/usr/lib/
89 ln -s libcnbpcmcm356.so.8.0.1 libcnbpcmcm356.so
90 ln -s libcnbpcnclapi356.so.3.5.0 libcnbpcnclapi356.so
91 ln -s libcnbpcnclbjcmd356.so.3.3.0 libcnbpcnclbjcmd356.so
92 ln -s libcnbpcnclui356.so.3.6.0 libcnbpcnclui356.so
93 ln -s libcnbpess356.so.3.3.3 libcnbpess356.so
94 ln -s libcnbpo356.so.1.0.2 libcnbpo356.so
95 ln -s libcnnet.so.1.2.0 libcnnet.so
97 cd ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}
98 install -D LICENSE-cnijfilter-${_pkgrealver}EN.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-cnijfilter-${_pkgrealver}EN.txt