blob: b1d0b646bf8e364925c4d178e0bd8ccb1bca783f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
pkgname=('foomatic-db-foo2zjs')
arch=('i686' 'x86_64')
_snapdate=20101215
_relver=4.0.6
_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"
if [ x$CARCH == x"x86_64" ]; then
md5sums=('fa546821d42f3f5d5cbd50c04a9656aa')
else
md5sums=('f2fae794f98445bdafd2e66e9f334416')
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/HP-LaserJet_1022n.xml
rm ${pkgdir}/usr/share/foomatic/db/source/printer/HP-LaserJet_1022nw.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
}
|