2 _printername=${pkgname/*-/}
5 pkgdesc="CUPS driver for Brother DCP-585CW printer"
7 license=('custom:Brother Industries')
8 depends=('cups' 'a2ps')
10 if [ "$CARCH" = "x86_64" ]; then
11 optdepends=('ghostscript: Printing PostScript'
12 'gsfonts: Fonts to use with GhostScript'
13 'foomatic-filters: Spooler for printing PostScript'
14 'lib32-libcups: use this instead of libcups if you run into problems on x86_64')
16 optdepends=('ghostscript: Printing PostScript'
17 'gsfonts: Fonts to use with GhostScript'
18 'foomatic-filters: Spooler for printing PostScript')
20 url="http://solutions.brother.com/linux/en_us/index.html"
21 source=(http://www.brother.com/pub/bsc/linux/dlf/${_printername}cupswrapper-$pkgver-2.i386.deb \
22 http://www.brother.com/pub/bsc/linux/dlf/${_printername}lpr-$pkgver-2.i386.deb)
23 md5sums=('4d2609c24f4af8809f4aa1d4a35e471d'
24 '9e7c114dbbc62ec1d4a6044953063ba6')
25 noextract=(${_printername}cupswrapper-$pkgver-2.i386.deb \
26 ${_printername}lpr-$pkgver-2.i386.deb)
27 install=dcp585cw.install
31 for n in $srcdir/*.deb; do
32 (ar -x "$n" data.tar.gz && mv data.tar.gz $srcdir/ && tar -xvvf $srcdir/data.tar.gz && rm $srcdir/data.tar.gz)
35 sed -i 's|/etc/init.d|/etc/rc.d|' $pkgdir/usr/local/Brother/Printer/dcp585cw/cupswrapper/cupswrapperdcp585cw