1 #Maintainer: Nicola Bignami <nicola@kernel-panic.dnsdojo.net>
2 #Contributor: Muhammed Uluyol <uluyol0@gmail.com>
7 pkgdesc="ZJStream Printer Drivers."
8 url="http://foo2zjs.rkkda.com/"
9 license=('GPL' 'custom')
10 depends=('psutils' 'cups' 'foomatic-db-engine' 'foomatic-db-foo2zjs')
11 makedepends=('unzip' 'bc')
12 optdepends=('tix: required by hplj10xx_gui.tcl')
13 arch=('i686' 'x86_64')
14 options=('!emptydirs')
15 install='foo2zjs.install'
16 source=('http://foo2zjs.rkkda.com/foo2zjs.tar.gz'
17 '0001-Firmware-destdir-support-20111227.patch')
18 md5sums=('41db67d986746eb13863bb702385b4d3'
19 '3ba59573daa0d29685947d3aa2f0ff30')
22 cd "${srcdir}/${pkgname}"
23 patch -p1 -i ${srcdir}/${source[1]}
27 for model in $(grep 'getone ' getweb.in | \
28 cut -d'#' -f1 | awk '{ print $2; }'); do
29 if [[ $model != '$i' ]]; then
30 ./getweb $model || true
34 install -d ${pkgdir}/usr/share/{applications,pixmaps,cups/model}
35 install -d ${pkgdir}/usr/share/foomatic/db/source/{driver,opt,printer}
37 make DESTDIR=${pkgdir} install install-hotplug-prog
39 install -m755 getweb ${pkgdir}/usr/bin
40 install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
42 # We don't need these, the changes are made are minimal
43 rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-Color_LaserJet_1500.xml
44 rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-Color_LaserJet_1600.xml
45 rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-Color_LaserJet_2600n.xml
46 rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-Color_LaserJet_CP1215.xml
47 rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_1000.xml
48 rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_1005.xml
49 rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_1018.xml
50 rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_1020.xml
51 rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_1022.xml
52 rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_M1120_MFP.xml
53 rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_P1005.xml
54 rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_P1006.xml
55 rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_P1007.xml
56 rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_P1008.xml
57 rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_P1505.xml
58 rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_P2014.xml
59 rm ${pkgdir}/usr/share/foomatic/db/source/printer/Generic-OAKT_Printer.xml
60 rm ${pkgdir}/usr/share/foomatic/db/source/printer/Generic-ZjStream_Printer.xml
61 rm ${pkgdir}/usr/share/foomatic/db/source/printer/Lexmark-C500.xml
62 rm ${pkgdir}/usr/share/foomatic/db/source/printer/Minolta-Color_PageWorks_Pro_L.xml
63 rm ${pkgdir}/usr/share/foomatic/db/source/printer/Oki-C3100.xml
64 rm ${pkgdir}/usr/share/foomatic/db/source/printer/Oki-C3200.xml
65 rm ${pkgdir}/usr/share/foomatic/db/source/printer/Oki-C3300.xml
66 rm ${pkgdir}/usr/share/foomatic/db/source/printer/Oki-C3400.xml
67 rm ${pkgdir}/usr/share/foomatic/db/source/printer/Oki-C3530_MFP.xml
68 rm ${pkgdir}/usr/share/foomatic/db/source/printer/Oki-C5100.xml
69 rm ${pkgdir}/usr/share/foomatic/db/source/printer/Oki-C5200.xml
70 rm ${pkgdir}/usr/share/foomatic/db/source/printer/Oki-C5500.xml
71 rm ${pkgdir}/usr/share/foomatic/db/source/printer/Oki-C5600.xml
72 rm ${pkgdir}/usr/share/foomatic/db/source/printer/Oki-C5800.xml
73 rm ${pkgdir}/usr/share/foomatic/db/source/printer/Samsung-CLP-300.xml
74 rm ${pkgdir}/usr/share/foomatic/db/source/printer/Samsung-CLP-315.xml
75 rm ${pkgdir}/usr/share/foomatic/db/source/printer/Samsung-CLP-600.xml
76 rm ${pkgdir}/usr/share/foomatic/db/source/printer/Samsung-CLP-610.xml
77 rm ${pkgdir}/usr/share/foomatic/db/source/printer/Samsung-CLX-2160.xml
78 rm ${pkgdir}/usr/share/foomatic/db/source/printer/Samsung-CLX-3160.xml
79 rm ${pkgdir}/usr/share/foomatic/db/source/printer/Samsung-CLX-3175.xml