Pastebin launched a little side project called HostCabi.net, check it out ;-)Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

Archlinux AUR PKGBUILD for foo2zjs

By: a guest on Nov 6th, 2010  |  syntax: Bash  |  size: 4.28 KB  |  hits: 75  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. pkgname=foo2zjs
  2. pkgver=20100817
  3. pkgrel=1
  4. pkgdesc="ZJStream Printer Drivers."
  5. url="http://foo2zjs.rkkda.com/"
  6. license=('GPL' 'custom')
  7. depends=('psutils' 'cups' 'foomatic-db-engine' 'foomatic-db-foo2zjs')
  8. makedepends=('unzip')
  9. optdepends=('tix: required by hplj10xx_gui.tcl')
  10. arch=('i686' 'x86_64')
  11. options=('!emptydirs')
  12. install='foo2zjs.install'
  13. source=('http://foo2zjs.rkkda.com/foo2zjs.tar.gz'
  14.         '0001-Add-firmware-and-destdir-support.patch')
  15. md5sums=('8993d4e869c2edee704d5905f1467bcd'
  16.          'ba6bd8419612395a9623c8fee0fc8791')
  17.  
  18. build() {
  19.   cd "${srcdir}/${pkgname}"
  20.   patch -p1 -i ${srcdir}/${source[1]}
  21.  
  22.   make
  23.  
  24.   for model in $(grep 'getone ' getweb.in | \
  25.                  cut -d'#' -f1 | awk '{ print $2; }'); do
  26.     if [[ $model != '$i' ]]; then
  27.       ./getweb $model || true
  28.     fi
  29.   done
  30.  
  31.   install -d ${pkgdir}/usr/share/{applications,pixmaps,cups/model}
  32.   install -d ${pkgdir}/usr/share/foomatic/db/source/{driver,opt,printer}
  33.  
  34.   make DESTDIR=${pkgdir} install install-hotplug-prog
  35.  
  36.   install -m755 getweb ${pkgdir}/usr/bin
  37.   install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  38.  
  39.   # We don't need these, the changes are made are minimal
  40.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-Color_LaserJet_1500.xml
  41.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-Color_LaserJet_1600.xml
  42.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-Color_LaserJet_2600n.xml
  43.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-Color_LaserJet_CP1215.xml
  44.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_1000.xml
  45.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_1005.xml
  46.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_1018.xml
  47.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_1020.xml
  48.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_1022.xml
  49.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_M1120_MFP.xml
  50.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_P1005.xml
  51.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_P1006.xml
  52.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_P1007.xml
  53.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_P1008.xml
  54.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_P1505.xml
  55.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_P2014.xml
  56.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/Generic-OAKT_Printer.xml
  57.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/Generic-ZjStream_Printer.xml
  58.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/KONICA_MINOLTA-magicolor_2480_MF.xml
  59.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/KONICA_MINOLTA-magicolor_2490_MF.xml
  60.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/Lexmark-C500.xml
  61.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/Minolta-Color_PageWorks_Pro_L.xml
  62.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/Minolta-magicolor_2200_DL.xml
  63.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/Minolta-magicolor_2300_DL.xml
  64.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/Minolta-magicolor_2430_DL.xml
  65.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/Oki-C3100.xml
  66.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/Oki-C3200.xml
  67.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/Oki-C3300.xml
  68.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/Oki-C3400.xml
  69.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/Oki-C3530_MFP.xml
  70.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/Oki-C5100.xml
  71.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/Oki-C5200.xml
  72.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/Oki-C5500.xml
  73.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/Oki-C5600.xml
  74.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/Oki-C5800.xml
  75.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/Samsung-CLP-300.xml
  76.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/Samsung-CLP-315.xml
  77.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/Samsung-CLP-600.xml
  78.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/Samsung-CLP-610.xml
  79.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/Samsung-CLX-2160.xml
  80.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/Samsung-CLX-3160.xml
  81.   rm ${pkgdir}/usr/share/foomatic/db/source/printer/Samsung-CLX-3175.xml
  82. }