Advertisement
Guest User

Untitled

a guest
May 27th, 2011
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. pkgname=('foomatic-db-foo2zjs')
  2. arch=('i686' 'x86_64')
  3. _snapdate=20101215
  4. _relver=4.0.6
  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=()
  18. if [ x$CARCH == x"x86_64" ]; then
  19. md5sums=('fa546821d42f3f5d5cbd50c04a9656aa')
  20. else
  21. md5sums=('f2fae794f98445bdafd2e66e9f334416')
  22. fi
  23. pkgdesc="Foomatic - The collected knowledge about printers, drivers, and driver options in XML files, used by foomatic-db-engine to generate PPD files."
  24.  
  25. build() {
  26. cd ${srcdir}/
  27. cp -Rp $(echo * | sed -e 's|.PKGINFO||' -e "s/foomatic-db-${pkgver}-${_foomatic_db_pkgrel}-${CARCH}.pkg.tar.gz//") ${pkgdir}/
  28. # foo2zjs gives us something different
  29. rm ${pkgdir}/usr/share/foomatic/db/source/driver/foo2hiperc.xml
  30. rm ${pkgdir}/usr/share/foomatic/db/source/driver/foo2hp.xml
  31. rm ${pkgdir}/usr/share/foomatic/db/source/driver/foo2lava.xml
  32. rm ${pkgdir}/usr/share/foomatic/db/source/driver/foo2oak-z1.xml
  33. rm ${pkgdir}/usr/share/foomatic/db/source/driver/foo2oak.xml
  34. rm ${pkgdir}/usr/share/foomatic/db/source/driver/foo2qpdl.xml
  35. rm ${pkgdir}/usr/share/foomatic/db/source/driver/foo2slx.xml
  36. rm ${pkgdir}/usr/share/foomatic/db/source/driver/foo2xqx.xml
  37. rm ${pkgdir}/usr/share/foomatic/db/source/driver/foo2zjs.xml
  38. rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_M1005_MFP.xml
  39. rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_1022n.xml
  40. rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_1022nw.xml
  41. rm ${pkgdir}/usr/share/foomatic/db/source/printer/KONICA_MINOLTA-magicolor_2530_DL.xml
  42. rm ${pkgdir}/usr/share/foomatic/db/source/printer/Kyocera-KM-1635.xml
  43. rm ${pkgdir}/usr/share/foomatic/db/source/printer/Kyocera-KM-2035.xml
  44. rm ${pkgdir}/usr/share/foomatic/db/source/printer/Xerox-Phaser_6110.xml
  45. rm ${pkgdir}/usr/share/foomatic/db/source/printer/Xerox-Phaser_6115MFP.xml
  46. rm ${pkgdir}/usr/share/foomatic/db/source/printer/Samsung-CLP-310.xml
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement