pkgname=('foomatic-db-foo2zjs') arch=('i686' 'x86_64') _snapdate=20101024 _relver=4.0.5 _foomatic_db_pkgrel=1 pkgver=${_relver}_${_snapdate} pkgrel=1 makedepends=() license=('GPL' 'custom') depends=('perl' 'libxml2') optdepends=('foo2zjs') replaces=('foomatic-db-ppd' 'foomatic-db-hpijs' 'foomatic-db') conflicts=('foomatic-db-ppd' 'foomatic-db-hpijs' 'foomatic-db') provides=('foomatic-db-hpijs' 'foomatic-db') source=(http://mirrors.kernel.org/archlinux/extra/os/${CARCH}/foomatic-db-${pkgver}-${_foomatic_db_pkgrel}-${CARCH}.pkg.tar.xz) url="http://www.linuxprinting.org/foomatic.html" options=('force') if [ x$CARCH == x"x86_64" ]; then md5sums=('175edf6e52da7f292649f2ae7812c06f') else md5sums=('ac81d2419ee843ab0c4e1a2cf21faf94') fi pkgdesc="Foomatic - The collected knowledge about printers, drivers, and driver options in XML files, used by foomatic-db-engine to generate PPD files." build() { cd ${srcdir}/ cp -Rp $(echo * | sed -e 's|.PKGINFO||' -e "s/foomatic-db-${pkgver}-${_foomatic_db_pkgrel}-${CARCH}.pkg.tar.gz//") ${pkgdir}/ # foo2zjs gives us something different rm ${pkgdir}/usr/share/foomatic/db/source/driver/foo2hiperc.xml rm ${pkgdir}/usr/share/foomatic/db/source/driver/foo2hp.xml rm ${pkgdir}/usr/share/foomatic/db/source/driver/foo2lava.xml rm ${pkgdir}/usr/share/foomatic/db/source/driver/foo2oak-z1.xml rm ${pkgdir}/usr/share/foomatic/db/source/driver/foo2oak.xml rm ${pkgdir}/usr/share/foomatic/db/source/driver/foo2qpdl.xml rm ${pkgdir}/usr/share/foomatic/db/source/driver/foo2slx.xml rm ${pkgdir}/usr/share/foomatic/db/source/driver/foo2xqx.xml rm ${pkgdir}/usr/share/foomatic/db/source/driver/foo2zjs.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_M1005_MFP.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/KONICA_MINOLTA-magicolor_2530_DL.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/Kyocera-KM-1635.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/Kyocera-KM-2035.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/Xerox-Phaser_6110.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/Xerox-Phaser_6115MFP.xml rm ${pkgdir}/usr/share/foomatic/db/source/printer/Samsung-CLP-310.xml }