1 # Contributor: Samuel Dionne-Riel <samuel@dionne-riel.com>
3 #based on http://aur.archlinux.org/packages.php?ID=30051
5 pkgname="brother-mfc-230c"
8 pkgdesc="LPR and CUPS driver for the Brother MFC-230c"
9 url="http://solutions.brother.com/linux/en_us/"
10 arch=('i686' 'x86_64')
12 install='brother-mfc-230c.install'
13 depends=('tcsh' 'perl' 'cups')
14 makedepends=('deb2targz')
16 "http://www.brother.com/pub/bsc/linux/dlf/mfc230clpr-${pkgver/_/-}.i386.deb"
17 "http://www.brother.com/pub/bsc/linux/dlf/mfc230ccupswrapper-${pkgver/_/-}.i386.deb"
20 'addbb5bb05a0a9e926a68b78bc470b07'
21 '7afff31efd60747340e72f41c615841d'
25 deb2targz *.deb || return 1
26 rm -f *.deb || return 1
27 cd $srcdir || return 1
28 [ -d "mfc230c" ] || (mkdir mfc230c || return 1)
29 for i in *.tar.gz;do tar xvvvfz $i -C mfc230c;done || return 1
30 cd mfc230c || return 1
31 cd usr/local/Brother/Printer/mfc230c || return 1
32 perl -i -pe 's#/etc/init.d#/etc/rc.d#g' ./cupswrapper/cupswrappermfc230c || return 1
33 perl -i -pe 's#printcap\.local#printcap#g' ./inf/setupPrintcapij || return 1
34 cp -rv $srcdir/mfc230c/usr/ $pkgdir/ || return 1