1 # Contributor: Jakub Schmidtke <sjakub-at-gmail.com>
6 pkgdesc="CUPS drivers for OKI B4000, B400 and MB400 PCL printers"
8 url="http://www.okidata.com/mkt/html/nf/Drivers.html"
10 depends=('cups' 'ghostscript' 'coreutils')
11 source=("ftp://ftp2.okidata.com/pub/drivers/linux/SFP/monochrome/desktop/OK400PCLv${pkgver}.tar.gz")
12 md5sums=('4f0b25e3c48e4e9045eba93bbad5f0ba')
17 gunzip ok400pcl.ppd.gz || return 1
19 sed -i 's|/usr/bin/cut|/bin/cut|' rastertookimonochrome
20 sed -i 's|/usr/bin/tr|/bin/tr|' rastertookimonochrome
22 mkdir -p ${pkgdir}/usr/lib/cups/filter
23 mkdir -p ${pkgdir}/usr/share/cups/model
25 install -m 755 rastertookimonochrome ${pkgdir}/usr/lib/cups/filter/rastertookimonochrome || return 1
26 install -m 644 ok400pcl.ppd ${pkgdir}/usr/share/cups/model/ok400pcl.ppd || return 1