Advertisement
Guest User

Archlinux AUR PKGBUILD for foomatic-db-foo2zjs

a guest
Nov 6th, 2010
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.23 KB | None | 0 0
  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.     md5sums=('175edf6e52da7f292649f2ae7812c06f')
  20. else
  21.     md5sums=('ac81d2419ee843ab0c4e1a2cf21faf94')
  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/KONICA_MINOLTA-magicolor_2530_DL.xml
  40.     rm ${pkgdir}/usr/share/foomatic/db/source/printer/Kyocera-KM-1635.xml
  41.     rm ${pkgdir}/usr/share/foomatic/db/source/printer/Kyocera-KM-2035.xml
  42.     rm ${pkgdir}/usr/share/foomatic/db/source/printer/Xerox-Phaser_6110.xml
  43.     rm ${pkgdir}/usr/share/foomatic/db/source/printer/Xerox-Phaser_6115MFP.xml
  44.     rm ${pkgdir}/usr/share/foomatic/db/source/printer/Samsung-CLP-310.xml
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement