This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 1st, 2010  |  syntax: None  |  size: 2.25 KB  |  views: 45  |  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=('foomatic-db-foo2zjs')
  2. arch=('i686' 'x86_64')
  3. _snapdate=20101024
  4. _relver=4.0.5
  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-${pkgver}-${_foomatic_db_pkgrel}-${CARCH}.pkg.tar.xz)
  16. url="http://www.linuxprinting.org/foomatic.html"
  17. options=('force')
  18. if [ x$CARCH == x"x86_64" ]; then
  19. #needs adjustment
  20.     md5sums=('444f7a1c3557d02cd2d7cec2acfefd36')
  21. else
  22.     md5sums=('43170d6819df2bb16467922780a65131')
  23. fi
  24. pkgdesc="Foomatic - The collected knowledge about printers, drivers, and driver options in XML files, used by foomatic-db-engine to generate PPD files."
  25.  
  26. build() {
  27.     cd ${srcdir}/
  28.     cp -Rp $(echo * | sed -e 's|.PKGINFO||' -e "s/foomatic-db-${pkgver}-${_foomatic_db_pkgrel}-${CARCH}.pkg.tar.gz//") ${pkgdir}/
  29.     # foo2zjs gives us something different
  30.     rm ${pkgdir}/usr/share/foomatic/db/source/driver/foo2hiperc.xml
  31.     rm ${pkgdir}/usr/share/foomatic/db/source/driver/foo2hp.xml
  32.     rm ${pkgdir}/usr/share/foomatic/db/source/driver/foo2lava.xml
  33.     rm ${pkgdir}/usr/share/foomatic/db/source/driver/foo2oak-z1.xml
  34.     rm ${pkgdir}/usr/share/foomatic/db/source/driver/foo2oak.xml
  35.     rm ${pkgdir}/usr/share/foomatic/db/source/driver/foo2qpdl.xml
  36.     rm ${pkgdir}/usr/share/foomatic/db/source/driver/foo2slx.xml
  37.     rm ${pkgdir}/usr/share/foomatic/db/source/driver/foo2xqx.xml
  38.     rm ${pkgdir}/usr/share/foomatic/db/source/driver/foo2zjs.xml
  39.     rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_M1005_MFP.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. }
clone this paste RAW Paste Data