1 # Contributor: Gary Ayre <catchfire@gmail.com>
2 # PKGBUILD based on: Eric Le Bras <eric.lebras@gmail.com>
4 pkgname=cnijfilter-mx320
7 pkgdesc="Canon IJ Printer Driver for Pixma MX320 multifunction"
9 url="http://support-au.canon.com.au/contents/AU/EN/0100188102.html"
10 license=('GPL2' 'LGPL2' 'custom')
11 depends=('libglade' 'cups' 'ghostscript')
12 makedepends=('autoconf>=2.13' 'automake>=1.6' 'tar' 'make' 'gcc')
13 conflicts=('cnijfilter-common')
14 install=cnijfilter-mx320.install
15 source=("http://gdlp01.c-wss.com/gds/1/0100001881/01/cnijfilter-source-${pkgver}-1.tar.gz" "id.po.patch")
16 md5sums=('e4484a6a915c0aa18e5d7dcb35391f88' '6c46a61a5c3cebfd7118fad58c4e70e9')
20 tar xzf cnijfilter-source-${pkgver}-1.tar.gz
22 patch -Np1 -i $startdir/src/id.po.patch || return 1
24 cd ${srcdir}/cnijfilter-source-${pkgver}/backend
25 ./autogen.sh --prefix=/usr --program-suffix=mx320 --enable-progpath=/usr/bin || return 1
26 make install DESTDIR=${pkgdir} || return 1
28 cd ${srcdir}/cnijfilter-source-${pkgver}/libs
29 ./autogen.sh --prefix=/usr --program-suffix=mx320 || return 1
30 make install DESTDIR=${pkgdir} || return 1
32 cd ${srcdir}/cnijfilter-source-${pkgver}/pstocanonij
33 ./autogen.sh --prefix=/usr --program-suffix=mx320 --enable-binpath=/usr/bin --enable-progpath=/usr/bin || return 1
34 make install DESTDIR=${pkgdir} || return 1
36 cd ${srcdir}/cnijfilter-source-${pkgver}/cngpij
37 ./autogen.sh --prefix=/usr --program-suffix=mx320 --enable-binpath=/usr/bin --enable-progpath=/usr/bin || return 1
38 make install DESTDIR=${pkgdir} || return 1
40 cd ${srcdir}/cnijfilter-source-${pkgver}/ppd
41 ./autogen.sh --prefix=/usr --program-suffix=mx320 || return 1
42 make install DESTDIR=${pkgdir} || return 1
44 cd ${srcdir}/cnijfilter-source-${pkgver}/cnijfilter
45 ./autogen.sh --prefix=/usr --program-suffix=mx320 --enable-libpath=/usr/lib/bjlib --enable-binpath=/usr/bin --enable-progpath=/usr/bin || return 1
48 make install DESTDIR=${pkgdir} || return 1
50 cd ${srcdir}/cnijfilter-source-${pkgver}/printui
51 ./autogen.sh --prefix=/usr --program-suffix=mx320 --datadir=/usr/share --enable-progpath=/usr/bin || return 1
54 make install DESTDIR=${pkgdir} || return 1
56 cd ${srcdir}/cnijfilter-source-${pkgver}/lgmon
57 ./autogen.sh --prefix=/usr --program-suffix=mx320 --enable-binpath=/usr/bin --enable-progpath=/usr/bin || return 1
60 make install DESTDIR=${pkgdir} || return 1
62 cd ${srcdir}/cnijfilter-source-${pkgver}/cngpijmon
63 ./autogen.sh --prefix=/usr --program-suffix=mx320 --enable-progpath=/usr/bin || return 1
66 make install DESTDIR=${pkgdir} || return 1
68 cd ${srcdir}/cnijfilter-source-${pkgver}
69 install -d ${pkgdir}/usr/lib/bjlib
70 install -m 755 348/database/* ${pkgdir}/usr/lib/bjlib
71 install -s -m 755 348/libs_bin/*.so.* ${pkgdir}/usr/lib
72 install -D LICENSE-cnijfilter-${pkgver}EN.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-cnijfilter-${pkgver}EN.txt
73 ln -s /usr/lib/cups/filter/pstocanonijmx320 ${pkgdir}/usr/lib/cups/filter/pstocanonij
74 chown -R root:root ${pkgdir}/usr/