1 # Maintainer: Uwe Bär <u.baer67@gmail.com>
3 pkgname="brother-mfc-j265w"
7 pkgdesc="LPR and CUPS driver for the Brother MFC-J265W"
8 url="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/index.html"
11 install='brother-mfc-j265w.install'
12 depends=('tcsh' 'deb2targz' 'perl' 'a2ps')
14 "http://pub.brother.com/pub/com/bsc/linux/dlf/mfcj265wlpr-1.1.1-1.i386.deb"
15 "http://pub.brother.com/pub/com/bsc/linux/dlf/mfcj265wcupswrapper-1.1.1-1.i386.deb"
17 md5sums=('1f253d01fd06bd238f51ea121d7f247d'
18 '4a6e2c82866ae6d3fedc9c0d707acc6c')
21 deb2targz *.deb >/dev/null || return 1
22 rm -f *.deb || return 1
23 cd $srcdir || return 1
24 [ -d "mfcj265w" ] || (mkdir mfcj265w || return 1)
25 for i in *.tar.gz;do tar xfz $i -C mfcj265w;done || return 1
26 cd mfcj265w || return 1
27 cd usr/local/Brother/Printer/mfcj265w || return 1
28 perl -i -pe 's#/etc/init.d#/etc/rc.d#g' ./cupswrapper/cupswrappermfcj265w || return 1
29 perl -i -pe 's#printcap\.local#printcap#g' ./inf/setupPrintcapij || return 1
30 cp -rf $srcdir/mfcj265w/usr/ $pkgdir/ || return 1