1 # Maintainer: speed145a <yetAnotherZero@gmail.com>
4 pkgname="brother-mfc-$model"
8 pkgdesc="LPR and CUPS driver for the Brother MFC-J265W"
9 url="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/index.html"
10 arch=('i686' 'x86_64')
12 install="brother-mfc-${model}.install"
13 depends=('tcsh' 'deb2targz' 'perl' 'a2ps')
14 source=("http://pub.brother.com/pub/com/bsc/linux/dlf/mfc${model}lpr-${pkgver}-${_revision}.i386.deb"
15 "http://pub.brother.com/pub/com/bsc/linux/dlf/mfc${model}cupswrapper-${pkgver}-${_revision}.i386.deb")
16 md5sums=('f21525444be3f30433d71c0ac03e8f2e'
17 '2c4711c08c115f0723e1afa60438655d')
20 deb2targz *.deb >/dev/null || return 1
21 rm -f *.deb || return 1
22 cd $srcdir || return 1
23 [ -d "mfc${model}" ] || (mkdir mfc${model} || return 1)
24 for i in *.tar.gz;do tar xfz $i -C mfc${model};done || return 1
25 cd mfc${model} || return 1
26 cd opt/brother/Printers/mfc${model} || return 1
27 perl -i -pe 's#/etc/init.d#/etc/rc.d#g' ./cupswrapper/cupswrappermfc${model} || return 1
28 perl -i -pe 's#printcap\.local#printcap#g' $srcdir/mfc${model}/etc/opt/brother/Printers/mfc${model}/inf/setupPrintcapij || return 1
29 cp -rf $srcdir/mfc${model}/usr/ $pkgdir/ || return 1
30 cp -rf $srcdir/mfc${model}/opt/ $pkgdir/ || return 1
31 cp -rf $srcdir/mfc${model}/etc/ $pkgdir/ || return 1