updated on Mon Jan 23 16:10:15 UTC 2012
[aur-mirror.git] / dcp585cw / PKGBUILD
blob0ad153eaa1fd52ca03fc44530a578a0d72ba6ac3
1 pkgname=dcp585cw
2 _printername=${pkgname/*-/}
3 pkgver=1.1.2
4 pkgrel=9
5 pkgdesc="CUPS driver for Brother DCP-585CW printer"
6 arch=('i686' 'x86_64')
7 license=('custom:Brother Industries')
8 depends=('cups' 'a2ps')
9 makedepends=('sed')
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')
15 else
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
29 build() {
30   cd $pkgdir
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) 
33   done 
35   sed -i 's|/etc/init.d|/etc/rc.d|' $pkgdir/usr/local/Brother/Printer/dcp585cw/cupswrapper/cupswrapperdcp585cw