1. pkgname=('foomatic-db-foo2zjs')
  2. arch=('i686' 'x86_64')
  3. _snapdate=20110707
  4. _relver=4.0.7
  5. _foomatic_db_pkgrel=1
  6. pkgver=${_relver}_${_snapdate}
  7. pkgrel=1
  8. makedepends=()
  9. license=('GPL' 'custom')
  10. depends=('perl' 'libxml2')
  11. optdepends=('foo2zjs')
  12. replaces=('foomatic-db-ppd' 'foomatic-db-hpijs' 'foomatic-db')
  13. conflicts=('foomatic-db-ppd' 'foomatic-db-hpijs' 'foomatic-db')
  14. provides=('foomatic-db-hpijs' 'foomatic-db')
  15. source=(http://mirrors.kernel.org/archlinux/extra/os/${CARCH}/foomatic-db-1:${pkgver}-${_foomatic_db_pkgrel}-${CARCH}.pkg.tar.xz)
  16. url="http://www.linuxprinting.org/foomatic.html"
  17. if [ x$CARCH == x"x86_64" ]; then
  18.     md5sums=('4d1dc6434526ba062dc96e28df97e376')
  19. else
  20.     md5sums=('2b34c48d1abfaf879a6a380d3fe50312')
  21. fi
  22. pkgdesc="Foomatic - The collected knowledge about printers, drivers, and driver options in XML files, used by foomatic-db-engine to generate PPD files."
  23.  
  24. build() {
  25.     cd ${srcdir}/
  26.     cp -Rp $(echo * | sed -e 's|.PKGINFO||' -e "s/foomatic-db-${pkgver}-${_foomatic_db_pkgrel}-${CARCH}.pkg.tar.gz//") ${pkgdir}/
  27.     # foo2zjs gives us something different
  28.     rm ${pkgdir}/usr/share/foomatic/db/source/driver/foo2hiperc.xml
  29.     rm ${pkgdir}/usr/share/foomatic/db/source/driver/foo2hp.xml
  30.     rm ${pkgdir}/usr/share/foomatic/db/source/driver/foo2lava.xml
  31.     rm ${pkgdir}/usr/share/foomatic/db/source/driver/foo2oak-z1.xml
  32.     rm ${pkgdir}/usr/share/foomatic/db/source/driver/foo2oak.xml
  33.     rm ${pkgdir}/usr/share/foomatic/db/source/driver/foo2qpdl.xml
  34.     rm ${pkgdir}/usr/share/foomatic/db/source/driver/foo2slx.xml
  35.     rm ${pkgdir}/usr/share/foomatic/db/source/driver/foo2xqx.xml
  36.     rm ${pkgdir}/usr/share/foomatic/db/source/driver/foo2zjs.xml
  37.     rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_M1005_MFP.xml
  38.     rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_1022n.xml
  39.     rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_1022nw.xml
  40.     rm ${pkgdir}/usr/share/foomatic/db/source/printer/KONICA_MINOLTA-magicolor_2530_DL.xml
  41.     rm ${pkgdir}/usr/share/foomatic/db/source/printer/Kyocera-KM-1635.xml
  42.     rm ${pkgdir}/usr/share/foomatic/db/source/printer/Kyocera-KM-2035.xml
  43.     rm ${pkgdir}/usr/share/foomatic/db/source/printer/Xerox-Phaser_6110.xml
  44.     rm ${pkgdir}/usr/share/foomatic/db/source/printer/Xerox-Phaser_6115MFP.xml
  45.     rm ${pkgdir}/usr/share/foomatic/db/source/printer/Samsung-CLP-310.xml
  46. }