pkgname=foo2zjs pkgver=20100817 pkgrel=1 pkgdesc="ZJStream Printer Drivers." url="http://foo2zjs.rkkda.com/" license=('GPL' 'custom') depends=('psutils' 'cups' 'foomatic-db-engine' 'foomatic-db-foo2zjs') makedepends=('unzip') optdepends=('tix: required by hplj10xx_gui.tcl') arch=('i686' 'x86_64') options=('!emptydirs') install='foo2zjs.install' source=('http://foo2zjs.rkkda.com/foo2zjs.tar.gz' '0001-Add-firmware-and-destdir-support.patch') md5sums=('8993d4e869c2edee704d5905f1467bcd' 'ba6bd8419612395a9623c8fee0fc8791') build() { cd "${srcdir}/${pkgname}" patch -p1 -i ${srcdir}/${source[1]} make for model in $(grep 'getone ' getweb.in | \ cut -d'#' -f1 | awk '{ print $2; }'); do if [[ $model != '$i' ]]; then ./getweb $model || true fi done install -d ${pkgdir}/usr/share/{applications,pixmaps,cups/model} install -d ${pkgdir}/usr/share/foomatic/db/source/{driver,opt,printer} make DESTDIR=${pkgdir} install install-hotplug-prog install -m755 getweb ${pkgdir}/usr/bin install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" # We don't need these, the changes are made are minimal rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-Color_LaserJet_1500.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-Color_LaserJet_1600.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-Color_LaserJet_2600n.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-Color_LaserJet_CP1215.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_1000.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_1005.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_1018.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_1020.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_1022.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_M1120_MFP.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_P1005.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_P1006.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_P1007.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_P1008.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_P1505.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_P2014.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/Generic-OAKT_Printer.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/Generic-ZjStream_Printer.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/KONICA_MINOLTA-magicolor_2480_MF.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/KONICA_MINOLTA-magicolor_2490_MF.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/Lexmark-C500.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/Minolta-Color_PageWorks_Pro_L.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/Minolta-magicolor_2200_DL.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/Minolta-magicolor_2300_DL.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/Minolta-magicolor_2430_DL.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/Oki-C3100.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/Oki-C3200.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/Oki-C3300.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/Oki-C3400.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/Oki-C3530_MFP.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/Oki-C5100.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/Oki-C5200.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/Oki-C5500.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/Oki-C5600.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/Oki-C5800.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/Samsung-CLP-300.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/Samsung-CLP-315.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/Samsung-CLP-600.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/Samsung-CLP-610.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/Samsung-CLX-2160.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/Samsung-CLX-3160.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/Samsung-CLX-3175.xml }