updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / oki-400-pcl / PKGBUILD
blob6cc656a41c96ff0ec58c90f35194d800420d3f68
1 # Contributor: Jakub Schmidtke <sjakub-at-gmail.com>
3 pkgname=oki-400-pcl
4 pkgver=3
5 pkgrel=1
6 pkgdesc="CUPS drivers for OKI B4000, B400 and MB400 PCL printers"
7 arch=(any)
8 url="http://www.okidata.com/mkt/html/nf/Drivers.html"
9 license=('GPL')
10 depends=('cups' 'ghostscript' 'coreutils')
11 source=("ftp://ftp2.okidata.com/pub/drivers/linux/SFP/monochrome/desktop/OK400PCLv${pkgver}.tar.gz")
12 md5sums=('4f0b25e3c48e4e9045eba93bbad5f0ba')
14 build() {
15   cd ${srcdir}/MB400
16   rm -f ok400pcl.ppd
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